public void TestNoParentExistsTrue() { using (var e = new MockA11yElement()) { Assert.IsTrue(NoParentExists.Matches(e)); } // using }
public void TestNoParentExistsFalse() { using (var e = new MockA11yElement()) using (var parent = new MockA11yElement()) { e.Parent = parent; Assert.IsFalse(NoParentExists.Matches(e)); }// using }