Esempio n. 1
0
        public void AddingRuleRange()
        {
            FizzBuzz fizzBuzz = new FizzBuzz();

            fizzBuzz.AddRuleRange(new Dictionary <int, string>
            {
                { 2, "Banana" },
                { 17, "Orange" },
            });

            Assert.AreEqual(true, fizzBuzz.IsRuleExistsFor(2));
            Assert.AreEqual(true, fizzBuzz.IsRuleExistsFor(17));
        }