Sha256: 74c9b099279257b38a1379d5f05bd2443ae2ace43fcf0a26275661bbb694e736
Contents?: true
Size: 1.5 KB
Versions: 4
Compression:
Stored size: 1.5 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); } TEST(TableInformation, NullHeadersYieldsEmptyElements) { auto tableInformation = TableInformation(0, 0, nullptr); ASSERT_EQ(0, tableInformation.Headers->length); }
Version data entries
4 entries across 4 versions & 1 rubygems