Example #1
0
        public void CanPrintOddEvenForSingleNumber(int number, string expectedresult)
        {
            var actualresult = OddEven.PrintSingleOddEven(number);

            Assert.That(expectedresult, Is.EqualTo(actualresult),
                        string.Format("result of entered number [{0}] is [{1}] but it should be [{2}]", number,
                                      actualresult, expectedresult));
        }
Example #2
0
        public void CanPrintOddEven(int startRange, int endRange)
        {
            var result = OddEven.PrintOddEven(startRange, endRange);

            Assert.NotNull(result, string.Format("{0}", result));
        }