Пример #1
0
        public void Multiple_3()
        {
            StringBuilder _stbuilder = new StringBuilder()
            {
            };

            _stbuilder.AppendLine("Fizz");
            _stbuilder.AppendLine("2");
            _stbuilder.AppendLine("1");
            FizzBuzz.CalcFizzBuzz("3");
            Assert.IsTrue(FizzBuzz.myResult.Equals(_stbuilder));
        }
Пример #2
0
 public void NonNegativeValue()
 {
     Assert.IsTrue(FizzBuzz.CalcFizzBuzz("-1").ToString().Equals("Valeur invalide"));
 }
Пример #3
0
 public void NumericValue()
 {
     Assert.IsTrue(FizzBuzz.CalcFizzBuzz("Hello").ToString().Equals("Valeur invalide"));
 }