diff --git a/source/Trek-12/Tests/GameTests.cs b/source/Trek-12/Tests/GameTests.cs index d4e339d..890890f 100644 --- a/source/Trek-12/Tests/GameTests.cs +++ b/source/Trek-12/Tests/GameTests.cs @@ -231,15 +231,18 @@ 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 }); - + //methodInfo.Invoke(_game, new object[] { operation }); + _game.MarkOperationAsChecked(operation); + int operationIndex = (int)operation; int operationsPerType = 4; bool isChecked = false; diff --git a/source/Trek-12/Trek-12/Views/PageBoard.xaml.cs b/source/Trek-12/Trek-12/Views/PageBoard.xaml.cs index 05befdc..081dd6f 100644 --- a/source/Trek-12/Trek-12/Views/PageBoard.xaml.cs +++ b/source/Trek-12/Trek-12/Views/PageBoard.xaml.cs @@ -111,7 +111,7 @@ public partial class PageBoard : ContentPage GameManager.MarkOperationAsChecked(Operation.MULTIPLICATION); } - private void Button_Clicked(object sender, EventArgs e) + private void DiceButton_Clicked(object sender, EventArgs e) { GameManager.RollAllDice(); }