Пример #1
0
 public static void Between(this IExpectation <string> e, string low, string high, StringComparison comparison, string message, params object[] args)
 {
     e.Like(Matchers.BeBetween(low, high, comparison), message, (object[])args);
 }
Пример #2
0
 public static void Between <T>(this IExpectation <T> e, T low, T high, IComparer <T> comparer, string message, params object[] args)
 {
     e.Like(Matchers.BeBetween(low, high, comparer), message, (object[])args);
 }
Пример #3
0
 public static void AssignableFrom(this IExpectation <TypeInfo> e, Type expected, string message, params object[] args)
 {
     e.Like(Matchers.BeAssignableFrom(expected), message, (object[])args);
 }
Пример #4
0
 public static void MemberwiseEqualTo <T>(this IExpectation <T> e, T expected, string message, params object[] args)
 {
     e.Like(Matchers.BeMemberwiseEqualTo(expected));
 }
Пример #5
0
 public void Apply <T>(IExpectation <T> e, T expected, Comparison <T> comparison, string message, params object[] args)
 {
     e.Like(CreateMatcher(expected, comparison), message, (object[])args);
 }
Пример #6
0
 public static void SameAs <T>(this IExpectation <T> e, object other, string message, params object[] args) where T : class
 {
     e.Like(Matchers.BeSameAs(other), message, (object[])args);
 }
Пример #7
0
 public void Apply <T>(IExpectation <IEnumerable <T> > e, IEnumerable <T> expected, string message, params object[] args)
 {
     e.Like(CreateMatcher(expected), message, (object[])args);
 }
Пример #8
0
 public static void Throw(this IExpectation e, string message, params object[] args)
 {
     e.Like(Matchers.Throw(), message, (object[])args);
 }
Пример #9
0
 public static void Match(this IExpectation <string> e, Regex expected, string message, params object[] args)
 {
     e.Like(Matchers.Match(expected), message, (object[])args);
 }
Пример #10
0
 public static void EqualToFileContents(this IExpectation <string> e, string fileName, string message, params object[] args)
 {
     e.Like(Matchers.EqualFileContents(fileName), message, (object[])args);
 }
Пример #11
0
 public static void EqualTo <T>(this IExpectation <T> e, T expected, IEqualityComparer <T> comparer, string message, params object[] args)
 {
     e.Like(Matchers.Equal(expected, comparer));
 }
Пример #12
0
 public static void EqualTo(this IExpectation <string> e, string expected, StringComparison comparison, string message, params object[] args)
 {
     e.Like(Matchers.Equal(expected, comparison));
 }
Пример #13
0
 public static void EndsWith(this IExpectation <string> e, string expected, string message, params object[] args)
 {
     e.Like(Matchers.EndWithSubstring(expected), message, (object[])args);
 }
Пример #14
0
 public static void False(this IExpectation <bool> e, string message, params object[] args)
 {
     e.Like(Matchers.BeFalse(), message, (object[])args);
 }
 public static void StartsWith(this IExpectation <string> e, string expected, StringComparison comparison, string message, params object[] args)
 {
     e.Like(Matchers.StartWithSubstring(expected, comparison), message, (object[])args);
 }
Пример #16
0
 public static void EqualToDownloadContents(this IExpectation <string> e, Uri source, string message, params object[] args)
 {
     e.Like(Matchers.EqualDownloadContents(source), message, (object[])args);
 }
Пример #17
0
 public static void Throw <TException>(this IExpectation e, string message, params object[] args) where TException : Exception
 {
     e.Like(Matchers.Throw <TException>(), message, (object[])args);
 }