예제 #1
0
        public void ProcessItem_ShouldReturnEmpty_DivisibleByZero()
        {
            ItemObjectHelper item = new ItemObjectHelper() { Number = 49 };

            var result = fizzBuzz.ProcessItem(item, 0, 0);

            Assert.AreEqual(result, string.Empty); 
        }
예제 #2
0
        public void ProcessItem_ShouldReturnFizzBuzz_ByLowerAndHigherNumber()
        {
            ItemObjectHelper item = new ItemObjectHelper() { Number = 15 };

            var result = fizzBuzz.ProcessItem(item, 3, 5);

            Assert.AreEqual(result, "FizzBuzz"); 
        }