示例#1
0
 public Guid Empty()
 {
     if (should.Negate)
     {
         assertProvider.AreNotEqual(Guid.Empty, should.Target);
     }
     else
     {
         assertProvider.AreEqual(Guid.Empty, should.Target);
     }
     return(should.Target);
 }
示例#2
0
 public DateTime Today()
 {
     if (should.Negate)
     {
         assertProvider.AreNotEqual(DateTime.Today, should.Target.Date);
     }
     else
     {
         assertProvider.AreEqual(DateTime.Today, should.Target.Date);
     }
     return(should.Target);
 }
示例#3
0
 public IEnumerable <T> Empty()
 {
     if (should.Negate)
     {
         assertProvider.AreNotEqual(0, should.Target.Count());
     }
     else
     {
         assertProvider.AreEqual(0, should.Target.Count());
     }
     return(should.Target);
 }
示例#4
0
 public string Empty()
 {
     if (should.Negate)
     {
         assertProvider.AreNotEqual(string.Empty, should.Target);
     }
     else
     {
         assertProvider.AreEqual(string.Empty, should.Target);
     }
     return(should.Target);
 }
示例#5
0
 public ICollection Empty()
 {
     if (should.Negate)
     {
         assertProvider.AreNotEqual(0, should.Target.Count);
     }
     else
     {
         assertProvider.AreEqual(0, should.Target.Count);
     }
     return(should.Target);
 }
 public DateTime?Today()
 {
     if (!should.Target.HasValue)
     {
         assertProvider.Fail("Expected TODAY but was NULL.");
     }
     else
     {
         if (should.Negate)
         {
             assertProvider.AreNotEqual(DateTime.Today, should.Target.Value.Date);
         }
         else
         {
             assertProvider.AreEqual(DateTime.Today, should.Target.Value.Date);
         }
     }
     return(should.Target);
 }