public void TestIsDesktopFalse() { using (var e = new MockA11yElement()) { Assert.IsFalse(IsDesktop.Matches(e)); } // using }
public void TestIsDesktopTrue() { using (var e = new MockA11yElement()) { var property = new A11yProperty(PropertyType.UIA_RuntimeIdPropertyId, new int[] { 0x2A, 0x10010 }); e.Properties.Add(property.Id, property); Assert.IsTrue(IsDesktop.Matches(e)); } // using }