예제 #1
0
 public static IAssertionResult <T, TSource> EqualTo <T, TSource>(this IValueProvider <T, TSource> provider, T expected)
 {
     return(provider.That(Is.EqualTo(expected)));
 }
예제 #2
0
 public static IAssertionResult <bool, TSource> False <TSource>(this IValueProvider <bool, TSource> provider, string message = null, int?timeout = null)
 {
     return(provider.That(Is.EqualTo(false), message));
 }
예제 #3
0
 public static IAssertionResult <T, TSource> EqualTo <T, TSource>(this IValueProvider <T, TSource> provider, T expected, string message, int?timeout = null)
 {
     return(provider.That(Is.EqualTo(expected), message));
 }
예제 #4
0
 public static IAssertionResult <string, TSource> Contain <TSource>(this IValueProvider <string, TSource> provider, string expected, string message = null, int?timeout = null)
 {
     return(provider.That(Does.Contain(expected), message));
 }
예제 #5
0
 //todo прокинуть timeouts
 public static IAssertionResult <T, TSource> That <T, TSource>(this IValueProvider <T, TSource> valueProvider, IResolveConstraint constraint, int?timeout = null)
 {
     return(valueProvider.That(constraint, null, timeout));
 }