Esempio n. 1
0
 public void ParseRowWithMultipleSeparators()
 {
     Assert.That(
         StretchParser.Tokens("a\t2;3,0    b \tc,;8\t\td"),
         Is.EqualTo(new string[] { "a", "2", "3", "0", "b", "c", "8", "d" })
         );
 }
Esempio n. 2
0
 public void IgnoreEmptyRows()
 {
     Assert.That(StretchParser.Rows("a\n\n8\nb\n"), Is.EqualTo(new string[] { "a", "8", "b" }));
 }
Esempio n. 3
0
 public void ParseRow()
 {
     Assert.That(StretchParser.Tokens("a 8 b 3 c"), Is.EqualTo(new string[] { "a", "8", "b", "3", "c" }));
 }
Esempio n. 4
0
 public void ParseText()
 {
     Assert.That(StretchParser.Rows("a\n8\nb"), Is.EqualTo(new string[] { "a", "8", "b" }));
 }