Пример #1
0
        public void StepFailed(String step, String status)
        {
            var temp = new columns {
                Action = step, Status = "Passed"
            };

            records.Add(temp);
        }
Пример #2
0
        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);
                }
        }