public void TestWritingDataToFileCreatesFile()
        {
            var content  = CreateStreamForDataString("col1,col2,col3");
            var filePath = @"..\..\IO\WriteTarget\Output.csv";

            writer.SaveDataToFile(content, filePath);
            var exists = File.Exists(filePath);

            File.Delete(filePath);
            Assert.IsTrue(exists);
        }
 private string WriteDataToFile(string data, string path)
 {
     return(_writer.SaveDataToFile(TranscribeDataStringToStream(data), path));
 }
示例#3
0
        private string WriteDataToFile(string data, string path)
        {
            var dataStream = TranscribeDataStringToStream(data);

            return(_fileWriter.SaveDataToFile(dataStream, path));
        }