public void FilterByKey_WithEmptyArray_ArgumentException() { TemplateMethodByKey temp = new TemplateMethodByKey(); Assert.Throws <ArgumentException>(() => temp.FilterByKey(new int[0]), message: "Array cannot be empty!"); }
public void FilterByKey_WithNullArray_ArgumentNullException() { TemplateMethodByKey temp = new TemplateMethodByKey(); Assert.Throws <ArgumentNullException>(() => temp.FilterByKey(null), message: "Array cannot be null"); }
public void FilterByKey_WithPossitivePowers_ExpectedResults(int[] array, int digit, int[] expected) { TemplateMethodByKey temp = new TemplateMethodByKey(digit); Assert.AreEqual(expected, temp.FilterByKey(array)); }