AddSetting() публичный Метод

public AddSetting ( int number, string word ) : void
number int
word string
Результат void
Пример #1
0
        public void PassDivisibleBy3And5And2GetFizzBuzzBanana()
        {
            var fizzBuzz = new FizzBuzzer();
            fizzBuzz.AddSetting(2, "Coconut");
            fizzBuzz.AddSetting(2, "Banana");
            var result = fizzBuzz.ToString(30);

            Assert.AreEqual("Fizz Buzz Banana", result);
        }
Пример #2
0
        public void PassChangeSettingGet2Settings()
        {
            var fizzBuzz = new FizzBuzzer();
            fizzBuzz.AddSetting(3, "coconut");

            Assert.AreEqual(fizzBuzz.Settings.Count, 2);
        }
Пример #3
0
        public void PassNewSettingGet3Settings()
        {
            var fizzBuzz = new FizzBuzzer();
            fizzBuzz.AddSetting(2, "coconut");

            Assert.AreEqual(fizzBuzz.Settings.Count, 3);
        }