Esempio n. 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);
 }
Esempio n. 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);
 }
 public static void AssignableFrom(this IExpectation <TypeInfo> e, Type expected, string message, params object[] args)
 {
     e.Like(Matchers.BeAssignableFrom(expected), message, (object[])args);
 }
 public static void MemberwiseEqualTo <T>(this IExpectation <T> e, T expected, string message, params object[] args)
 {
     e.Like(Matchers.BeMemberwiseEqualTo(expected));
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 8
0
 public static void Throw(this IExpectation e, string message, params object[] args)
 {
     e.Like(Matchers.Throw(), message, (object[])args);
 }
Esempio n. 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);
 }
 public static void EqualToFileContents(this IExpectation <string> e, string fileName, string message, params object[] args)
 {
     e.Like(Matchers.EqualFileContents(fileName), message, (object[])args);
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
 public static void EndsWith(this IExpectation <string> e, string expected, string message, params object[] args)
 {
     e.Like(Matchers.EndWithSubstring(expected), message, (object[])args);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }