Skip to content

Commit 876c81b

Browse files
committed
ci: fix dotnet install test samples
1 parent b47afa5 commit 876c81b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ objs
5454
packages
5555
build/
5656
build_cmake/
57+
build_all/
58+
build_dotnet/
59+
build_java/
60+
build_python/
5761
build_cross/
5862
build_make/
5963
install_make/

cmake/samples/dotnet/RoutingSample.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
using System;
1515
using Xunit;
16-
1716
using Google.OrTools.ConstraintSolver;
1817
using Google.OrTools.Routing;
1918

@@ -27,9 +26,11 @@ public class RoutingSolverTest
2726
public void SolverTest(bool callGC)
2827
{
2928
// Create Routing Index Manager
30-
RoutingIndexManager manager = new RoutingIndexManager(5 /*locations*/, 1 /*vehicle*/, 0 /*depot*/);
29+
IndexManager manager = new IndexManager(5 /*locations*/, 1 /*vehicle*/, 0 /*depot*/);
30+
Assert.NotNull(manager);
3131
// Create Routing Model.
32-
RoutingModel routing = new RoutingModel(manager);
32+
Model routing = new Model(manager);
33+
Assert.NotNull(routing);
3334
// Create a distance callback.
3435
int transitCallbackIndex = routing.RegisterTransitCallback((long fromIndex, long toIndex) =>
3536
{

0 commit comments

Comments
 (0)