Пример #1
0
        public void CheckOnesNumber()
        {
            // Arrange
            string expected = "twelve";
            int    number   = 12;
            // Act
            string actual = NumberReader.GetNumberToString(number);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void CheckMixedHundredNumber()
        {
            // Arrange
            string expected = "four hundred and ten";
            int    number   = 410;
            // Act
            string actual = NumberReader.GetNumberToString(number);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void CheckTensNumber()
        {
            // Arrange
            string expected = "fifty-four";
            int    number   = 54;
            // Act
            string actual = NumberReader.GetNumberToString(number);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #4
0
        public void CheckHundredNumber()
        {
            // Arrange
            string expected = "two hundred and three";
            int    number   = 203;
            // Act
            string actual = NumberReader.GetNumberToString(number);

            // Assert
            Assert.AreEqual(expected, actual);
        }