public void ArgumentZero_Calculate_ResultMustBeZero() { var variableSinus = new SinusFunction(); Assert.Zero(variableSinus.Calculate(0)); }
public void FractionalArgument_Calculate_ResultMustBeNumber() { var variableSinus = new SinusFunction(); var result = variableSinus.Calculate(999.09); var validResult = 0.063; Assert.IsTrue(result.Eq(validResult)); }
public void ArgumentOfMinus_Calculate_ResultMustBeNumber() { var variableSinus = new SinusFunction(); var result = variableSinus.Calculate(-2); var validResult = -0.909; Assert.IsTrue(result.Eq(validResult)); }