Push() public method

public Push ( ITransferProgress status, string localSub = null, string remoteSub = null ) : void
status ITransferProgress
localSub string
remoteSub string
return void
 public void CanPushWithSub() {
     var mock = A.Fake<IRsyncLauncher>();
     A.CallTo(() => mock.Run(@"testsrc\sub", "testremote", new RsyncOptions { Key = @"C:\key" }))
         .Returns(new ProcessExitResultWithOutput(0, 0, new ProcessStartInfo(), string.Empty, string.Empty));
     _controller = new RsyncController("testsrc", "testremote", @"C:\key", mock);
     _controller.Push("sub");
     A.CallTo(() => mock.Run(@"testsrc\sub", "testremote", new RsyncOptions { Key = @"C:\key" }))
         .MustHaveHappened(Repeated.Exactly.Once);
 }
        public void PushError() {
            var mock = A.Fake<IRsyncLauncher>();
            A.CallTo(() => mock.Run("a", "b", null))
                .Returns(new ProcessExitResultWithOutput(1, 0, new ProcessStartInfo(), String.Empty, String.Empty));

            _controller = new RsyncController("a", "b", null, mock);
            Assert.Throws<RsyncException>(() => _controller.Push());
            A.CallTo(() => mock.Run("a", "b", null))
                .MustHaveHappened(Repeated.Exactly.Once);
        }