Example #1
0
        public void Test1000()
        {
            int    a         = 1;
            int    b         = 1000;
            int    count     = Prob17.GetLetterCount(a, b);
            string resultTxt = $"Lettercount for {a} thru {b} is: {count}";

            Utilities.TestUtils.WriteOut(resultTxt);
            Assert.AreEqual(21124, count); //this is correct
        }
Example #2
0
        public void Test167()
        {
            int    a         = 1;
            int    b         = 167;
            int    count     = Prob17.GetLetterCount(a, b);
            string resultTxt = $"Lettercount for {a} thru {b} is: {count}";

            Utilities.TestUtils.WriteOut(resultTxt);
            Assert.AreEqual(2272, count);
        }