Exemplo n.º 1
0
        public void CanHandle_ReturnsCorrectResult(string command, bool?expectedResult)
        {
            ArrangeInputs(parseResultSections: command,
                          out MockedShellState shellState,
                          out HttpState httpState,
                          out ICoreParseResult parseResult);

            ClearCommand clearCommand = new ClearCommand();

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

            Assert.Equal(expectedResult, result);
        }