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