예제 #1
0
 private static List <object[]> ProvideCanonicalTestCases()
 {
     using (StreamReader reader = new StreamReader("../../../../../share/test/data/schema-tests.txt"))
     {
         return(CaseFinder.Find(reader, "canonical", new List <object[]>()));
     }
 }
 private static List <object[]> ProvideFingerprintTestCases()
 {
     using (StreamReader reader = System.IO.File.OpenText("../../../../../share/test/data/schema-tests.txt"))
     {
         return(CaseFinder.Find(reader, "fingerprint", new List <object[]>()));
     }
 }
        private static List <object[]> ProvideCanonicalTestCases()
        {
            var dir       = Path.GetDirectoryName(new Uri(typeof(SchemaNormalizationTests).Assembly.CodeBase).LocalPath);
            var testsPath = Path.Combine(dir, "../../../../../../../../share/test/data/schema-tests.txt");

            using (StreamReader reader = new StreamReader(testsPath))
            {
                return(CaseFinder.Find(reader, "canonical", new List <object[]>()));
            }
        }