Ejemplo n.º 1
0
        public void ShouldBeAbleToBuildMultipleCommandsOnCmd()
        {
            _runner.GetCommand().Returns(new Commando(_runner));
            var git = cmd.git;

            _runner.GetCommand().Returns(new Commando(_runner));
            var svn = cmd.svn;

            Assert.NotEqual(git, svn);
        }
Ejemplo n.º 2
0
 public CmdDslTests()
 {
     _runner = Substitute.For <IRunner>();
     _runner.Run(Arg.Any <IRunOptions>()).Returns("result");
     _runner.GetCommand().Returns(new Commando(_runner));
     cmd = new Cmd(_runner);
 }
Ejemplo n.º 3
0
 public CmdCommandoTests()
 {
     _runner = Substitute.For <IRunner>();
     _runner.GetCommand().Returns(new CmdCommando(_runner));
     cmd = new Cmd(_runner);
 }