public CsvFileArtefact Unparse(TestListResult <TTestCase> model, CsvFileArtefact artefact) { if (artefact == null) { artefact = new CsvFileArtefact { CsvFilePath = "Result.csv" }; } FileInfo csvFile = new FileInfo(artefact.CsvFilePath); using (var stream = csvFile.OpenWrite()) { using (StreamWriter writer = new StreamWriter(stream)) { writer.WriteLine("Tests:"); writer.WriteLine("Name;Categories"); foreach (var test in model.IdentifiedTests) { writer.WriteLine($"{test.Id};" + string.Join(" ", test.Categories)); } } } return(artefact); }
public TestListResult <TTestCase> Parse(CsvFileArtefact artefact) { throw new NotImplementedException(); }