public void SearchNumbersWithEmptyResult() { var result = NumbersFunctions.SearchNumbers(30, 2); Assert.AreEqual(expected: new int[] { }, result); }
public void SearchNumbersWithOneResult() { var result = NumbersFunctions.SearchNumbers(1, 2); Assert.AreEqual(expected: new int[] { 1, 10, 10 }, result); }
public void InvalidSumParam() { Assert.Throws <ArgumentException>(() => NumbersFunctions.SearchNumbers(-10, 10)); }
public void ValidParam() { var result = NumbersFunctions.SearchNumbers(6, 3); Assert.AreEqual(expected: new int[] { 21, 105, 600 }, result); }
public void InvalidCapacityParam() { Assert.Throws <ArgumentException>(() => NumbersFunctions.SearchNumbers(10, -1)); }