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