Example #1
0
        public void TestFifthGreede()
        {
            var testLineFunc = new ComponentFunctionVM()
            {
                ACoefficient = 5, BCoefficient = 6, CCoefficient = 30000, X = "10", Y = "11", NameFunction = "5-ой степени"
            };

            var resalt = CalculateResult.Result(testLineFunc);

            Assert.AreEqual(617846, resalt);
        }
Example #2
0
        public void TestSecondGreede()
        {
            var testLineFunc = new ComponentFunctionVM()
            {
                ACoefficient = 5, BCoefficient = 6, CCoefficient = 30, X = "10", Y = "11", NameFunction = "квадратичная"
            };

            var resalt = CalculateResult.Result(testLineFunc);

            Assert.AreEqual(596, resalt);
        }
Example #3
0
        public void TestThirdGreede()
        {
            var testLineFunc = new ComponentFunctionVM()
            {
                ACoefficient = 5, BCoefficient = 6, CCoefficient = 300, X = "10", Y = "11", NameFunction = "кубическая"
            };

            var resalt = CalculateResult.Result(testLineFunc);

            Assert.AreEqual(6026, resalt);
        }
Example #4
0
        public void TestLineFunc()
        {
            var testLineFunc = new ComponentFunctionVM()
            {
                ACoefficient = 5, BCoefficient = 6, CCoefficient = 3, X = "10", Y = "11", NameFunction = "линейная"
            };

            var resalt = CalculateResult.Result(testLineFunc);

            Assert.AreEqual(59, resalt);
        }