public static void FilterArrayByKey_WithNullArray() { FilterArrayByKey testFilterArray = new FilterArrayByKey(0); Assert.Throws <ArgumentNullException>(() => testFilterArray.FilterArray(null)); }
public static void FilterArrayByKey_KeyMoreThanNine() { FilterArrayByKey testFilterArray; Assert.Throws <ArgumentOutOfRangeException>(() => testFilterArray = new FilterArrayByKey(100)); }
public static void FilterArrayByKey_WithEmptyArray() { FilterArrayByKey testFilterArray = new FilterArrayByKey(0); Assert.Throws <ArgumentException>(() => testFilterArray.FilterArray(new int[0])); }
public static void FilterArrayByKey_WithNegativeKey() { FilterArrayByKey testFilterArray; Assert.Throws <ArgumentOutOfRangeException>(() => testFilterArray = new FilterArrayByKey(-1)); }
public static int[] FilterArrayByKey_WithAllValidParameters(int[] arr, int key) { FilterArrayByKey filterArray = new FilterArrayByKey(key); return(filterArray.FilterArray(arr)); }