예제 #1
0
        public void TestMinusZero()
        {
            //arrange
            string     entryNum = "-0";
            string     expected = "Minus Zero";
            ConvertNum cn       = new ConvertNum();

            // act
            Trace.WriteLine(cn.Convert(entryNum));

            // assert
            string result = cn.Convert(entryNum);

            Assert.AreEqual(expected, result);
        }
예제 #2
0
        public void TestTenThous()
        {
            //arrange
            string     entryNum = "10001";
            string     expected = "Ten Thousand and One";
            ConvertNum cn       = new ConvertNum();

            // act
            Trace.WriteLine(cn.Convert(entryNum));

            // assert
            string result = cn.Convert(entryNum);

            Assert.AreEqual(expected, result);
        }
예제 #3
0
        public void TestMilHundThous()
        {
            //arrange
            string     entryNum = "1100000";
            string     expected = "One Million One Hundred Thousand";
            ConvertNum cn       = new ConvertNum();

            // act
            Trace.WriteLine(cn.Convert(entryNum));

            // assert
            string result = cn.Convert(entryNum);

            Assert.AreEqual(expected, result);
        }