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 NotEqualDownloadContents(Uri source, string actual, string message, params object[] args) { NotThat(actual, Matchers.EqualDownloadContents(source), message, (object[])args); }
public static void EqualToDownloadContents(this IExpectation <string> e, Uri source, string message, params object[] args) { e.Like(Matchers.EqualDownloadContents(source), message, (object[])args); }