예제 #1
0
 public void WhiteSpace_Should_Pass()
 {
     NewTestCollection()
     .Add(
         "Source.If().WhiteSpace",
         () => Source.If().WhiteSpace,
         12)
     .Add(
         "EmptySource.If().WhiteSpace",
         () => EmptySource.If().WhiteSpace,
         12)
     .RunAll();
 }
예제 #2
0
 public void Not_Null_Or_WhiteSpace_Should_Pass()
 {
     NewTestCollection()
     .Add(
         "Source.If().Not.Null.Or.WhiteSpace",
         () => Source.If().Not.Null.Or.WhiteSpace,
         20)
     .Add(
         "EmptySource.If().Not.Null.Or.WhiteSpace",
         () => EmptySource.If().Not.Null.Or.WhiteSpace,
         20)
     .Add(
         "NullSource.If().Not.Null.Or.WhiteSpace",
         () => NullSource.If().Not.Null.Or.WhiteSpace,
         20)
     .RunAll();
 }
예제 #3
0
 public void Length_Should_Pass()
 {
     NewTestCollection()
     .Add(
         "Source.If().Length.Is(5)",
         () => Source.If().Length.Is(5),
         20)
     .Add(
         "EmptySource.If().Length.Is(0)",
         () => EmptySource.If().Length.Is(0),
         20)
     .Add(
         "Source.If().Length.Is.Not(5)",
         () => Source.If().Length.Is.Not(5),
         20)
     .Add(
         "EmptySource.If().Length.Is.Not(0)",
         () => EmptySource.If().Length.Is.Not(0),
         20)
     .RunAll();
 }