public void Test_CubeWithOverflowCheck_ThrowsArithmeticOverflowException(int x) { Assert.Throws <OverflowException>(() => Integers.CubeWithOverflowCheck(x)); }
public void Test_CubeWithOverflowCheck_ReturnsCorrectValue(int x, int cube) { Assert.Equal(Integers.CubeWithOverflowCheck(x), cube); }