ext/UiaDll/UiaDll.Test/ElementInformationTest.cpp in uia-0.4 vs ext/UiaDll/UiaDll.Test/ElementInformationTest.cpp in uia-0.4.1

- old
+ new

@@ -35,9 +35,16 @@ TEST_F(ElementInformationTest, ItHasTheName) { ASSERT_STREQ("Expected Name", ElementInformation(gcnew ElementStub("Expected Name")).name); } +TEST_F(ElementInformationTest, ItHasTheHelpText) { + auto element = gcnew ElementStub(""); + element->HelpText = gcnew String("Expected help text"); + + ASSERT_STREQ("Expected help text", ElementInformation(element).helpText); +} + TEST_F(ElementInformationTest, ItKnowsAboutTheRuntimeId) { auto elementInformation = ElementInformation(gcnew ElementStub("", 0, 1, 2)); for(auto expected = 0; expected < 3; expected++) { ASSERT_EQ(expected, elementInformation.runtimeId[expected]);