ITestMatcher <string> ITestMatcherFactory <string> .CreateMatcher(TestContext testContext) { if (Url != null) { if (Url.IsAbsoluteUri && Url.IsFile) { return(Matchers.EqualFileContents(Url.LocalPath)); } return(Matchers.EqualDownloadContents(Url)); } var filePath = _input.FindMatchingPaths(testContext).Single(); return(Matchers.EqualFileContents(filePath.FileName)); }
public void NotEqualFileContents(string fileName, string actual, string message, params object[] args) { NotThat(actual, Matchers.EqualFileContents(fileName), 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); }