示例#1
0
        public void TestZeroA()
        {
            var mathHelper = new global::MathHelper.Kavokin.EquationsOperations();
            var result     = mathHelper.CalculateQuadraticEquation(0, 2, -4);

            if (result.Item1 != null)
            {
                Assert.AreEqual(result.Item1.Value, 2, double.Epsilon);
            }
        }
示例#2
0
        public void TestZeroAandBbutNotC()
        {
            var mathHelper = new global::MathHelper.Kavokin.EquationsOperations();

            Assert.ThrowsException <Exception>(() => { mathHelper.CalculateQuadraticEquation(0, 0, -4); });
        }