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)); }
public void NonNegativeValue() { Assert.IsTrue(FizzBuzz.CalcFizzBuzz("-1").ToString().Equals("Valeur invalide")); }
public void NumericValue() { Assert.IsTrue(FizzBuzz.CalcFizzBuzz("Hello").ToString().Equals("Valeur invalide")); }