Esempio n. 1
0
        public void Convert_TestIntegrationMethod_True2()
        {
            //arrange
            int    num = 50423524;
            string er  = "fifty million four hundred twenty three thousand five hundred twenty four";
            //act
            NumToWord ntw = new NumToWord();
            string    ar  = ntw.Convert(num);

            Assert.AreEqual(er, ar);
        }
Esempio n. 2
0
        public void Convert_TestIntegrationMethod_True3()
        {
            //arrange
            int    num = 554;
            string er  = "five hundred fifty four";
            //act
            NumToWord ntw = new NumToWord();
            string    ar  = ntw.Convert(num);

            Assert.AreEqual(er, ar);
        }
Esempio n. 3
0
        public void Convert_TestIntegrationMethod_True4()
        {
            //arrange
            int    num = 504513321;
            string er  = "five hundred four million five hundred thirteen thousand three hundred twenty one";
            //act
            NumToWord ntw = new NumToWord();
            string    ar  = ntw.Convert(num);

            Assert.AreEqual(er, ar);
        }