Ejemplo n.º 1
0
        public void CanPrintFrom1To50()
        {
            OddEvenClass oddEven    = new OddEvenClass();
            int          startRange = 1;
            int          endRange   = 50;
            var          result     = oddEven.PrintOddEven(startRange, endRange);

            Assert.IsNotNull(result, string.Format("{0}", result));
        }
Ejemplo n.º 2
0
        public void CanPrintOddEvenForSingleNumber4()
        {
            OddEvenClass oddEven        = new OddEvenClass();
            int          number         = 4;
            var          actualresult   = oddEven.PrintSingleOddEven(number);
            var          expectedresult = "Even";

            Assert.AreEqual(expectedresult, actualresult);
        }