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); } }
public void TestZeroAandBbutNotC() { var mathHelper = new global::MathHelper.Kavokin.EquationsOperations(); Assert.ThrowsException <Exception>(() => { mathHelper.CalculateQuadraticEquation(0, 0, -4); }); }