public void FilterNumbers_WithNullArgument_ThrowArgumentNulException() { int[] array = null; PredicateDigit3 digit = new PredicateDigit3(); int[] actual = ArrayExtension.FilterNumbers(array, digit); }
public void FilterNumbers_WithDigit3_Success() { int[] array = new int[] { 3, 2, 77, 37, 701 }; PredicateDigit3 digit = new PredicateDigit3(); int[] expected = new int[] { 3, 37 }; int[] actual = ArrayExtension.FilterNumbers(array, digit); CollectionAssert.AreEqual(expected, actual); }