Exemple #1
0
        private static ParseResult GetQuitParseResult()
        {
            var command   = new QuitCommand();
            var validator = new QuitValidator();

            return(new ParseResult
            {
                Command = command,
                Validator = validator,
            });
        }
Exemple #2
0
        public void QuitValidator()
        {
            // arrange
            var spreadSheet = new SpreadSheet();
            var command     = new QuitCommand();
            var validator   = new QuitValidator();

            // act
            validator.Validate(spreadSheet, command);

            // assert
            Assert.IsTrue(true);
        }