Exemple #1
0
        public void ArgumentZero_Calculate_ResultMustBeZero()
        {
            var variableSinus = new SinusFunction();


            Assert.Zero(variableSinus.Calculate(0));
        }
Exemple #2
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));
        }
Exemple #3
0
        public void ArgumentOfMinus_Calculate_ResultMustBeNumber()
        {
            var variableSinus = new SinusFunction();
            var result        = variableSinus.Calculate(-2);
            var validResult   = -0.909;


            Assert.IsTrue(result.Eq(validResult));
        }