public string Fizz_Return_Fizz_When_AnyInteger_Is_Divisible_ByThreee(int position) { FizzBuzz fizzBuzz = new FizzBuzz(); string[] fullString = fizzBuzz.GetFizz(); string result = fullString[position].ToString(); return result; }
public string Fizz_Return_A_String_OfIntegers(int position) { FizzBuzz fizzBuzz = new FizzBuzz(); string[] fullString = fizzBuzz.GetFizz(); string result = fullString[position].ToString(); return result; }
public void GetFizz_Return_Fizz_SplittedByCommas() { FizzBuzz fizzBuzz = new FizzBuzz(); string[] test = fizzBuzz.GetFizz(); string fizzString = fizzBuzz.Fizz(); string[] expectedResult = fizzString.Split(','); bool isEqual = Enumerable.SequenceEqual(test, expectedResult); Assert.AreEqual(true, isEqual); }