コード例 #1
0
 public void ParseStringsWithApostraphe()
 {
     var runner = new TextParser();
     var listString = "we're coding";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(2, parsedList.Count);
     Assert.AreEqual(parsedList[0], "we're");
 }
コード例 #2
0
 public void ParseWithDelimeters()
 {
     var runner = new TextParser();
     var listString = @"first, second, / \ + = . , & third";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(3, parsedList.Count);
     Assert.AreEqual(parsedList[1], "second");
 }
コード例 #3
0
 public void ParseList()
 {
     var runner = new TextParser();
     var listString = "first second third";
     var parsedList = runner.ParseString(listString);
     Assert.AreEqual(parsedList.Count, 3);
     Assert.AreEqual(parsedList[1], "second");
 }