Exemple #1
0
        public void ConvertSingleNumberToString()
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(1);

            convertedNumber.Should().Be("one");
        }
Exemple #2
0
        public string ConvertsTwoDigitNumberMoreThanTwentyToString(int numberToConvert)
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(numberToConvert);

            return(convertedNumber);
        }
Exemple #3
0
        public void ConvertsTwoDigitNumberLessThanTwentyToString()
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(12);

            convertedNumber.Should().Be("twelve");
        }
Exemple #4
0
        public string ConvertsTwoDigitNumberMoreThanTwentyToString(int numberToConvert)
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(numberToConvert);

            return convertedNumber;
        }
Exemple #5
0
        public void ConvertsTwoDigitNumberLessThanTwentyToString()
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(12);

            convertedNumber.Should().Be("twelve");
        }
Exemple #6
0
        public void ConvertSingleNumberToString()
        {
            var converter = new NumberToStringConverter();

            var convertedNumber = converter.Convert(1);

            convertedNumber.Should().Be("one");
        }