Sha256: 7f8f0b874c28f2d359cdf2626ebaff8a3b4da0dc329c82fc11f40af252579c11

Contents?: true

Size: 1023 Bytes

Versions: 2

Compression:

Stored size: 1023 Bytes

Contents

#include "stdafx.h"

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

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);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uia-0.0.6.1 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp
uia-0.0.6 ext/UiaDll/UiaDll.Test/PatternInformationTest.cpp