Add costructors to LineParser.

This commit is contained in:
Daniel Kraus
2015-06-21 06:12:30 +02:00
parent 85800ebd75
commit cfbf3c7859
2 changed files with 20 additions and 2 deletions

View File

@ -55,8 +55,7 @@ namespace Tests
[Test]
public void ParseLineWithQuotesAndPunctuation()
{
LineParser lp = new LineParser();
lp.Line = "this-is \"a , simple ;\" line";
LineParser lp = new LineParser("this-is \"a , simple ;\" line");
Assert.AreEqual("this-is", lp.Fields[0]);
Assert.AreEqual("a , simple ;", lp.Fields[1]);
Assert.AreEqual("line", lp.Fields[2]);