Ejemplo n.º 1
0
        public void Should_execute_service(int limit)
        {
            var service = new SumOfMultipleCommand {
                LimiteAsString = limit.ToString()
            };

            var expected = new Domain.SumOfMultiple().Execute(limit);

            service.OnExecute(_consoleMock.Object);

            _consoleMock.VerifyWriteLine(expected.ToString("#,##0"));
        }
Ejemplo n.º 2
0
        public void Should_execute_service(string input)
        {
            var service = new SequenceAnalysisCommand {
                Input = input
            };

            var expected = new SequenceAnalysis().Execute(input);

            service.OnExecute(_consoleMock.Object);

            _consoleMock.VerifyWriteLine(expected);
        }