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