예제 #1
0
 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;
 }
예제 #2
0
 public string Fizz_Return_A_String_OfIntegers(int position)
 {
     FizzBuzz fizzBuzz = new FizzBuzz();
     string[] fullString = fizzBuzz.GetFizz();
     string result = fullString[position].ToString();
     return result;
 }
예제 #3
0
        public string Fizz_Return_FizzBuzz_When_AnyInteger_Is_Divisible_Five(int position)
        {
            FizzBuzz fizzBuzz = new FizzBuzz();

            string[] fullString = fizzBuzz.GetFizz();
            string   result     = fullString[position].ToString();

            return(result);
        }
예제 #4
0
        public string Fizz_Return_A_String_OfIntegers(int position)
        {
            FizzBuzz fizzBuzz = new FizzBuzz();

            string[] fullString = fizzBuzz.GetFizz();
            string   result     = fullString[position].ToString();

            return(result);
        }
예제 #5
0
 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);
 }
예제 #6
0
        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);
        }