public void count(String source, int expected) { String actual; using (Pnyx p = new Pnyx()) { p.readString(source); p.countLines(); actual = p.processToString(); } Assert.Equal(expected, int.Parse(actual)); }
public void countRow() { String actual; using (Pnyx p = new Pnyx()) { p.readString(PLANETS_GODS); p.parseCsv(); p.countLines(); actual = p.processToString(); } Assert.Equal("7,7,7", actual.TrimEnd()); }