public void Derivative_CosPlusSin_CorrectResultReturned()
        {
            Function a              = new Cos();
            Function b              = new Sin();
            var      res            = a + b;
            var      expectedResult = new AdditionOfFunctions(new UnaryMinusOfFunction(new Sin()), new Cos());

            Assert.AreEqual(expectedResult, res.Derivative());
        }
        [Test] public void BuiltFunction_LinearPlusPolynomial_CorrectResultReturned()
        {
            const string function       = "af l x+3 + p x^3-5";
            var          res            = new AddInStorageBuilder().BuildFunction(function);
            var          expectedResult = new AdditionOfFunctions(new Linear(1, 3), new Polynomial(new List <double> {
                -5, 0, 0, 1
            }));

            Assert.AreEqual(expectedResult, res);
        }