Пример #1
0
        public void CalculateQuadraticEquationRoots_ExampleWithDeltaLowerThanZero_ExpectedMessageForZeroRoots(double firstValue, double secondValue, double thirdValue, string message)
        {
            RootCalculator rc = new RootCalculator(firstValue, secondValue, thirdValue);

            rc.RootCalculate();
            Assert.AreEqual(rc.ToString(), message);
        }
Пример #2
0
        public void CalculateQuadraticEquationRoots_RootCalculateMethodNotUsed_ExpectedMessage(double firstValue, double secondValue, double thirdValue, string message)
        {
            RootCalculator rc = new RootCalculator(firstValue, secondValue, thirdValue);

            Assert.AreEqual(rc.ToString(), message);
        }