public void PercentOfTestDivideByZero() { // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => Int16Ex.PercentOf(0, 100); Assert.Throws <DivideByZeroException>(test); }
public void PercentOfTest2DivideByZero() { // ReSharper disable once ReturnValueOfPureMethodIsNotUsed Action test = () => Int16Ex.PercentOf(0, (Int64)100); test.ShouldThrow <DivideByZeroException>(); }