Пример #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);
 }
Пример #6
0
 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);
 }