From a4296f465cca7b4d7feefcb909f9e3bc919ff30c Mon Sep 17 00:00:00 2001 From: Thoumi Ngonga Brice Date: Wed, 8 Feb 2023 18:14:56 +0100 Subject: [PATCH] Add Uni Test AIGridGUI --- src/test/java/AIGridGUITest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/AIGridGUITest.java b/src/test/java/AIGridGUITest.java index de23f60..aaf60ee 100644 --- a/src/test/java/AIGridGUITest.java +++ b/src/test/java/AIGridGUITest.java @@ -14,4 +14,14 @@ public class AIGridGUITest { assertEquals(45, result); } + @Test + public void testMoveDown() { + AIGridGUI aiGridGUI = new AIGridGUI(5, 5); + int testLocation = 10; + + int result = aiGridGUI.moveDown(testLocation); + + assertEquals(15, result); + } + }