示例#1
0
 public TAssertion Should()
 {
     PredicateString.Add("should");
     _filter.Materialize();
     if (!_filter.FilteredItems.Any())
     {
         PredicateString.Add("WARNING! No matches ******");
     }
     return(CeateAssertionFunc(_filter, _negate));
 }
示例#2
0
 public IAssemblyPredicate OnlyAnAssembly()
 {
     PredicateString.Start("Only an assembly");
     return(CreateAssembly(true, true));;
 }
示例#3
0
 public IClassPredicate OnlyAClass()
 {
     PredicateString.Start("Only a class");
     return(CreateClass(true, true));
 }
示例#4
0
 public IAssemblyPredicate EachAssembly()
 {
     PredicateString.Start("Each assembly");
     return(CreateAssembly(false, false));
 }
示例#5
0
 public IAssemblyPredicate NoAssembly()
 {
     PredicateString.Start("No assembly");
     return(CreateAssembly(true, false));
 }
示例#6
0
 public IClassPredicate NoClass()
 {
     PredicateString.Start("No class");
     return(CreateClass(true, false));
 }
示例#7
0
 public IClassPredicate EachClass()
 {
     PredicateString.Start("Each class");
     return(CreateClass(false, false));
 }
示例#8
0
 public TAssertion Not()
 {
     PredicateString.Add("not");
     Verifier.Negate();
     return(LogicalLink.And());
 }