Sha256: 3accad9f86e1e67a24c0fb2c869b949f820cb7f61fc12560cd337afeb66adf2a

Contents?: true

Size: 1.33 KB

Versions: 27

Compression:

Stored size: 1.33 KB

Contents

#include "stdafx.h"

#include <PatternInformationStructures.h>
#include "ElementStub.h"

using namespace System::Windows::Automation;

TEST(ValueInformation, CanBeInitialized)
{
  auto valueInfo = new ValuePatternInformation("Whatever", true);
  ASSERT_STREQ("Whatever", valueInfo->Value);
  ASSERT_EQ(true, valueInfo->IsReadOnly);
  delete valueInfo;
}

TEST(ToggleInformation, CanBeInitialized)
{
  auto toggleInfo = new ToggleInformation("On");
  ASSERT_STREQ("On", toggleInfo->ToggleState);
  delete toggleInfo;
}

TEST(SelectionItemInformation, CanBeInitialized)
{
  auto isSelected = true;
  auto container = gcnew ElementStub("Expected container");

  auto selectionItemInfo = SelectionItemInformation(isSelected, container);

  ASSERT_STREQ("Expected container", selectionItemInfo.Container->name);
  ASSERT_EQ(true, selectionItemInfo.IsSelected);
}

TEST(ExpandCollapseInfo, CanBeInitialized) {
  auto expandCollapseInfo = ExpandCollapseInfo("Collapsed");
  ASSERT_STREQ("Collapsed", expandCollapseInfo.ExpandCollapseState);
}

TEST(WindowInformation, CanBeInitialized) {
  auto windowInformation = WindowInformation(WindowVisualState::Minimized, WindowInteractionState::Closing);
  ASSERT_STREQ("Minimized", windowInformation.VisualState);
  ASSERT_STREQ("Closing", windowInformation.InteractionState);
}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
uia-1.0 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.8 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.7 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.7.alpha.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.6 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.5 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.4.4 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.4.3 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.4.2 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.4.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.4 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.3.3 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.3.2 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.3.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.3 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.2.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.2 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.1.3.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.1.3 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.1.2.3 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp