public void NUnitTest_FilterDigit_In_General_If_Input_Array_Length_Is_0() { int[] inputArray = new int[0]; var filter = 6; var filterPredicate = new FilterAndChange.FilterArrayIntegerNumbers(filter); Assert.Throws <ArgumentOutOfRangeException>(() => FilterAndChange.FilterDigit(inputArray, filterPredicate)); }
public void NUnitTest_FilterDigit_In_General_Expected_ArgumentNullException() { int[] inputArray = null; var filter = 6; var filterPredicate = new FilterAndChange.FilterArrayIntegerNumbers(filter); Assert.Throws <ArgumentNullException>(() => FilterAndChange.FilterDigit(inputArray, filterPredicate)); }