Пример #1
0
 public IEnumerable <T> Parse(string source)
 {
     using (var s = SourceProvider.GetStreamReader(source))
     {
         return(StreamParser.Parse(s)
                .Select(v => ValueNormalizer.Normalize(v)));
     }
 }
 public void NormalizeTest()
 {
     Assert.AreEqual("", ValueNormalizer.Normalize(null));
     Assert.AreEqual("", ValueNormalizer.Normalize("None"));
     Assert.AreEqual("dummy", ValueNormalizer.Normalize("dummy"));
 }