示例#1
0
        public void SelectNoCommand()
        {
            var result = "";

            var sut = new RootCommand(x => result = x);

            sut.Run(new Mock <IArgumentsParser>().Object, "third");

            Assert.Equal("", result);
        }
示例#2
0
        public void SelectSecondCommand()
        {
            var result = "";

            var sut = new RootCommand(x => result = x);

            sut.Run("first");

            Assert.Equal("first", result);
        }