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