public void Validation_2Times2_Example1() { var solver = SystemOfLinearEquationsSolverTestExamples.Solver_2Times2_Example1(); var solution = solver.Solve(); Assert.That(solution.Result, Is.EqualTo( SolveResult.IsOk)); }
public void Solve_2Times2_Example1() { var solver = SystemOfLinearEquationsSolverTestExamples.Solver_2Times2_Example1(); var solution = solver.Solve(); Assert.That(solution.Values[0], Is.EqualTo(46.0).Within(0.01).Percent); Assert.That(solution.Values[1], Is.EqualTo(16.0).Within(0.01).Percent); }