Beispiel #1
0
        public void FizzBuzztestSimple()
        {
            int[] input    = { 4, 3, 6, 30, 10, 12 };
            int[] output   = FizzBuzzFilter.multiFizzBuzz(input);
            int[] expected = { 4, 3, 3, 0, 5, 3 };
            // Use the Assert class to test conditions

            CollectionAssert.AreEqual(expected, output);
        }
Beispiel #2
0
 public static int[] combinedFilter(int[] xs)
 {
     return(FizzBuzzFilter.multiFizzBuzz(Modulo3.moduloThree(xs)));
 }
 public static int[] combinedFilter(int[] xs)
 {
     return(FizzBuzzFilter.multiFizzBuzz(DecrementIfLessThanFirstFilter.DecrementIfLess(DiffFilter.Diff(xs.ToList <int>()).ToArray())));
 }