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); }
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); }
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); }
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); }