Пример #1
0
        public void When_NoReplFlag_Then_NoRepl()
        {
            //Create new cli
            var cli = new Ui.Cli.Cli();

            //Parse --no-repl
            var result = cli.Parse(new[] { "--no-repl" });

            //Assert if no repl is true
            Assert.True(result.NoRepl);
        }
Пример #2
0
        public void When_DebugFlag_Then_VerboseLogging()
        {
            //Create new cli
            var cli = new Ui.Cli.Cli();

            //Parse --debug flag
            var result = cli.Parse(new[] { "--debug" });

            //Assert if debug is true
            Assert.True(result.Debug);
        }