From 56c47829e846cf9cca9567c903c83a0c9a645d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Sat, 8 Jun 2024 13:18:42 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20r=C3=A9flexion=20pour=20un=20?= =?UTF-8?q?test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Trek-12/Tests/GameTests.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/Trek-12/Tests/GameTests.cs b/source/Trek-12/Tests/GameTests.cs index 6324c2d..02c40cf 100644 --- a/source/Trek-12/Tests/GameTests.cs +++ b/source/Trek-12/Tests/GameTests.cs @@ -236,17 +236,13 @@ public class GameTests _game.InitializeGame(map, player); // Use of reflection to call private method - /* var methodInfo = typeof(Game).GetMethod("MarkOperationAsChecked", BindingFlags.NonPublic | BindingFlags.Instance); Assert.NotNull(methodInfo); - */ var operation = Operation.ADDITION; - //methodInfo.Invoke(_game, new object[] { operation }); - - _game.MarkOperationAsChecked(operation); + methodInfo.Invoke(_game, new object[] { operation }); int operationIndex = (int)operation; int operationsPerType = 4;