Ejemplo n.º 1
0
        public void Given_Input_is_19_return_nineteen()
        {
            //Given I have the int 19
            int number = 19;
            //When I pass the value in to the number sting converter
            ITeensConverter teenConverter = new TeenConverter();
            string          text          = teenConverter.Convert(number);

            //Then I get back nineteen
            Assert.AreEqual("nineteen", text);
        }
Ejemplo n.º 2
0
        public void Given_Input_is_12_return_twelve()
        {
            //Given I have the int 12
            int number = 12;
            //When I pass the value in to the number sting converter
            ITeensConverter teenConverter = new TeenConverter();
            string          text          = teenConverter.Convert(number);

            //Then I get back twelve
            Assert.AreEqual("twelve", text);
        }