Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }