Beispiel #1
0
 public static void ShouldTrue(this bool result)
 {
     AssertHelper.WriteLineForShouldBeTrue(result);
     Assert.IsTrue(result);
 }
Beispiel #2
0
 public static void ShouldFalse(this bool result)
 {
     AssertHelper.WriteLineForShouldBeFalse(result);
     Assert.IsFalse(result);
 }
Beispiel #3
0
 public static object ShouldNotNull(this object value)
 {
     AssertHelper.WriteLineForShouldBeNotNull(value);
     Assert.IsNotNull(value);
     return(value);
 }
Beispiel #4
0
 public static string WithPrefix(this string value, bool isOk = true)
 {
     return(AssertHelper.PrefixKo(value));
 }
Beispiel #5
0
 public static string WithKoPrefix(this string value)
 {
     return(AssertHelper.PrefixKo(value));
 }
Beispiel #6
0
 public static string WithOkPrefix(this string value)
 {
     return(AssertHelper.PrefixOk(value));
 }
Beispiel #7
0
 public static void ShouldThrows <T>(this Action action) where T : Exception
 {
     AssertHelper.ShouldThrows <T>(action);
 }