示例#1
0
        public void CanHandle(string commandText, bool?expected)
        {
            HttpState        httpState   = GetHttpState(out _, out _);
            ICoreParseResult parseResult = CreateCoreParseResult(commandText);
            IShellState      shellState  = new MockedShellState();

            HelpCommand helpCommand = new HelpCommand();

            bool?result = helpCommand.CanHandle(shellState, httpState, parseResult);

            Assert.Equal(expected, result);
        }