public void Validate_2Times2Example2_IsOk() { var solver = SystemOfLinearEquationsSolverTestExamples.Solver_2Times2_Example2(); var solution = solver.Solve(); Assert.That(solution.Result, Is.EqualTo( SolveResult.IsOk)); }
public void Solve_2Times2_Example2() { var solver = SystemOfLinearEquationsSolverTestExamples.Solver_2Times2_Example2(); var solution = solver.Solve(); Assert.That(solution.Values[0], Is.EqualTo(10.0).Within(0.01).Percent); Assert.That(solution.Values[1], Is.EqualTo(20.0).Within(0.01).Percent); }