public void TestFileCreationWithValidFileNameAndEmptyResponseObject() { var emptyTestAPIData = new LiveTrafficDataResponse.Response(); string outputFileName = CSVFile.GenerateFile(emptyTestAPIData, "output.csv"); Assert.IsNull(outputFileName); }
public void TestFileCreationWithValidFileNameAndNullResponseObject() { LiveTrafficDataResponse.Response testAPIData = null; string outputFileName = CSVFile.GenerateFile(testAPIData, "output.csv"); Assert.IsNull(outputFileName); }
public void TestFileCreationWithInvalidFileName() { var emptyTestAPIData = new LiveTrafficDataResponse.Response(); string outputFileName = CSVFile.GenerateFile(emptyTestAPIData,"output" + DateTime.Today.ToShortDateString() + ".csv" ); Assert.IsNull(outputFileName); }