public void ClearUnnecessaryRowsTest() { _csvHelper.ClearUnnecessaryRows("R1", "R2"); string[] lines = (string[])_csvObject.GetField("_lines"); Assert.AreEqual(lines[1], "R3,##,45.5,45.5"); }