예제 #1
0
			public void SetUp()
			{
				log = Substitute.For<ILog>();
				subCommands = Substitute.For<IDictionary<string, ICommand>>();
				
				createCommand = new CreateCommand(log, subCommands);
			}
예제 #2
0
			public void SetUp()
			{
				invalidArgument = "blah";
				log = Substitute.For<ILog>();
				subCommands = Substitute.For<IDictionary<string, ICommand>>();
				
				subCommands.ContainsKey(invalidArgument).Returns(false);
				
				createCommand = new CreateCommand(log, subCommands);
			}
예제 #3
0
			public void SetUp()
			{
				subCommandArgument = "subCommand";
				additionalArgument = "additionalArgument";
				
				subCommand = Substitute.For<ICommand>();
				subCommand.Execute(Arg.Any<string[]>()).Returns(ExitCode.Success);
				
				log = Substitute.For<ILog>();
				
				subCommands = Substitute.For<IDictionary<string, ICommand>>();
				subCommands.ContainsKey(subCommandArgument).Returns(true);
				subCommands[subCommandArgument] = subCommand;
				
				createCommand = new CreateCommand(log, subCommands);
			}