コード例 #1
0
        public void ValidateNumber_Failure()
        {
            var converter     = new NumberConverter();
            var errorResponse = converter.ConvertToWord("abc");

            Assert.Equal("Not a Valid Number", errorResponse);
        }
コード例 #2
0
        public void ValidateNumber_Success()
        {
            var converter = new NumberConverter();
            var response  = converter.ConvertToWord("123");

            Assert.Equal("One hundred  Twenty Three", response);
        }