public void WriteRemoveExtraBlanksStringInFile_HasLine() { string[] args = { "hasLineInput.txt", "hasLineOutput.txt" }; RemoveExtraBlanks.WriteRemoveExtraBlanksStringInFile(args); string expected = "asfsda dsf sdf fds ds d ds"; using (StreamReader reader = new StreamReader(args[1])) { Assert.Equal(expected, reader.ReadLine()); } }
public void WriteRemoveExtraBlanksStringInFile_VoidFile() { string[] args = { "emptyInput.txt", "emptyOutput.txt" }; RemoveExtraBlanks.WriteRemoveExtraBlanksStringInFile(args); string expected = null; using (StreamReader reader = new StreamReader(args[1])) { Assert.Equal(expected, reader.ReadLine()); } }