public void Opening_csv_file_should_be_done_by_Stream_Writer() { //arrange const string fileName = "fileName"; //act _csvWriter.Open(fileName); //assert _streamWriter.Verify(s => s.Open(fileName)); }
public void Open(string fileName, Mode mode) { _mode = mode; if (_mode == Mode.Read) { _csvReader.Open(fileName); return; } _csvWriter.Open(fileName); }