public void Given_ValidArray_Expect_ReturnsMaximumProduct(int[] d, int e) { int a = Subarray.MaximumProduct(d); Assert.True(a == e, "Expected: " + e + " Actual: " + a); }
public void Given_NullOrEmptyArray_Expect_ThrowsArguementException(int[] i) { Assert.Throws <ArgumentException>(() => Subarray.MaximumProduct(i)); }