public void StepFailed(String step, String status) { var temp = new columns { Action = step, Status = "Passed" }; records.Add(temp); }
public void testComplete() { var temp = new columns { Action = "Test Complete", Status = "" }; records.Add(temp); using (var writer = new StreamWriter(directory + "\\Report.csv")) using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture)) { csv.WriteRecords(records); } }