public void TestMethod6() { MethodLibrary.MethodLibrary obj = new MethodLibrary.MethodLibrary(); string Expected = "Có 2 nghiệm phân biệt"; string Actual = obj.SolveQuadratic(1, -4, 3, out float x1, out float x2); Assert.AreEqual(Expected, Actual); }
public void TestMethod1() { MethodLibrary.MethodLibrary obj = new MethodLibrary.MethodLibrary(); string Expected = "Vô số nghiệm"; string Actual = obj.SolveQuadratic(0, 0, 0, out float x1, out float x2); Assert.AreEqual(Expected, Actual); }
public void TestMethod5() { MethodLibrary.MethodLibrary obj = new MethodLibrary.MethodLibrary(); string Expected = "Có nghiệm kép"; string Actual = obj.SolveQuadratic(2, 4, 2, out float x1, out float x2); Assert.AreEqual(Expected, Actual); }