public void Run()
        {
            NumberValidator checker = new NumberValidator(Number);

            if (!checker.IsNumber())
            {
                consoleViewer.ShowExpression("instruction");//todod
                return;
            }

            if (!checker.HasRightLength())
            {
                consoleViewer.ShowExpression("instruction");//todo
                return;
            }

            Context       destinationPhrase = new Context(Number);
            Interpretator transletor        = new Interpretator();

            transletor.Interpret(destinationPhrase);
            consoleViewer.ShowExpression(destinationPhrase.Output);
        }
Example #2
0
        public void ReturnFalseeForValidNumbers(string number)
        {
            var validator = new NumberValidator();

            Assert.False(validator.IsNumber(number));
        }