From a577f9bd336ab634acaf4f179d0a6dfc0fa1aa54 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 6 Nov 2023 15:13:03 +0100 Subject: [PATCH] csharp: ModelBuilderTests.cs support for USE_SCIP=OFF --- ortools/linear_solver/csharp/ModelBuilderTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ortools/linear_solver/csharp/ModelBuilderTests.cs b/ortools/linear_solver/csharp/ModelBuilderTests.cs index 166640b16f6..f861dfeece0 100644 --- a/ortools/linear_solver/csharp/ModelBuilderTests.cs +++ b/ortools/linear_solver/csharp/ModelBuilderTests.cs @@ -33,6 +33,10 @@ public void BasicApiTest() model.Maximize(v3); Solver solver = new Solver("scip"); + if (solver is null) + { + return; + } SolveStatus status = solver.Solve(model); Assert.Equal(SolveStatus.OPTIMAL, status);