public void ProcessFile_ValidParameters_Test(string path, string result) { var printerMock = new Mock <IPrinter>(); var handler = new ReverseOneFileHandler(printerMock.Object); var current = handler.ProcessFile(path); Assert.IsTrue(current == result); }
public void ProcessFile_InvalidParameters_Test(string path) { var printerMock = new Mock <IPrinter>(); var handler = new ReverseOneFileHandler(printerMock.Object); var current = handler.ProcessFile(path); Assert.IsNull(current); }