public void FilterDigits_TestArrayAndFilter_ArgumentException() { int[] testArray = { 9, 25, 7, 2817, 19, 0, 777 }; int filter = 782; int[] actualArray = IntFilter.FilterDigit(filter, testArray); }
public void FilterDigit_TestArrayAndFilter_ExpectedArray() { int[] testArray = { 9, 25, 7, 2817, 19, 0, 777, -7 }; int filter = 7; int[] expectedArray = { 7, 2817, 777, -7 }; int[] actualArray = IntFilter.FilterDigit(filter, testArray); CollectionAssert.AreEqual(expectedArray, actualArray); }
public void FilterDigit_IntMinTestArrayAndFilter_ExpectedArray() { int[] testArray = { Int32.MinValue }; int filter = 7; int[] expectedArray = { Int32.MinValue }; int[] actualArray = IntFilter.FilterDigit(filter, testArray); CollectionAssert.AreEqual(expectedArray, actualArray); }
public void FilterDigit_NullAndFilter_ArgumentNullException() { int filter = 7; int[] actualArray = IntFilter.FilterDigit(filter, null); }