コード例 #1
0
        public void number_divisible_by_five_gives_buzz()
        {
            Fizzer fizz = new Fizzer();

            Assert.That(fizz.Process(5), Is.EqualTo("Buzz"));
            Assert.That(fizz.Process(20), Is.EqualTo("Buzz"));
        }
コード例 #2
0
        public void number_divisible_by_three_gives_fizz()
        {
            Fizzer fizz = new Fizzer();

            Assert.That(fizz.Process(3), Is.EqualTo("Fizz"));
            Assert.That(fizz.Process(12), Is.EqualTo("Fizz"));
        }