예제 #1
0
        public void TestCommandDoesntExecutesWithMinus()
        {
            var parameters = new ParameterParser().Parse(@"-three ""-two""");

            var command = new FakeCommand();

            command.BindParameters(parameters);

            Assert.Null(command.GetOptions());
        }
예제 #2
0
        public void TestCommandExecutes()
        {
            var parameters = new ParameterParser().Parse("-one two");

            var command = new FakeCommand();

            command.BindParameters(parameters);

            Assert.NotNull(command.GetOptions());
        }