ext/UiaDll/UiaDll.Test/ElementInformationTest.cpp in uia-0.0.8 vs ext/UiaDll/UiaDll.Test/ElementInformationTest.cpp in uia-0.0.9

- old
+ new

@@ -88,9 +88,17 @@ element->IsEnabled = true; ASSERT_EQ(true, ElementInformation(element).isEnabled); } +TEST_F(ElementInformationTest, ItKnowsIfItHasFocus) +{ + auto element = gcnew ElementStub(""); + element->HasKeyboardFocus = true; + + ASSERT_EQ(true, ElementInformation(element).hasKeyboardFocus); +} + TEST_F(ElementInformationTest, ItCanBeRefreshed) { auto elementInformation = ElementInformation(gcnew ElementStub("Initial", 0)); auto updatedElement = gcnew ElementStub("Refreshed", 46, 2);