Exemplo n.º 1
0
        public void CheckRange_ShouldFail(string start, string end, string argumentName)
        {
            ISequence sequence = new FibonacciSequence.FibonacciSequence();
            var       ui       = new FibonacciSequenceUI();
            var       app      = new FibonacciSequenceApp(ui, sequence);

            Assert.Throws <ArgumentException>(argumentName, () => app.Run(start, end));
        }
Exemplo n.º 2
0
        public void GetRange_ShouldFail(string endRange)
        {
            ISequence sequence = new FibonacciSequence.FibonacciSequence();
            var       ui       = new FibonacciSequenceUI();
            var       app      = new FibonacciSequenceApp(ui, sequence);

            Assert.Throws <FormatException>(() => app.Run("1", endRange));
        }