From 34627314e1910dd3b8ee51d828e39bff0a1811fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20LAVERGNE?= Date: Sat, 18 May 2024 17:48:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20=20Mise=20=C3=A0=20jour=20?= =?UTF-8?q?des=20tests=20de=20Map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Trek-12/Tests/MapTests.cs | 36 ++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/source/Trek-12/Tests/MapTests.cs b/source/Trek-12/Tests/MapTests.cs index 0a7f3cf..5257433 100644 --- a/source/Trek-12/Tests/MapTests.cs +++ b/source/Trek-12/Tests/MapTests.cs @@ -1,6 +1,34 @@ -namespace Tests; +using Models.Game; -public class MapTest +namespace Tests; + +public class MapTests { - -} \ No newline at end of file + [Fact] + public void Constructor_WithValidBackground_SetsBackgroundCorrectly() + { + var map = new Map("background"); + Assert.Equal("background", map.Background); + } + + [Fact] + public void Constructor_InitializesEmptyBoards() + { + var map = new Map("background"); + Assert.Empty(map.Boards); + } + + [Fact] + public void Constructor_InitializesEmptyOperationGrid() + { + var map = new Map("background"); + Assert.Empty(map.OperationGrid); + } + + [Fact] + public void Constructor_InitializesEmptyZones() + { + var map = new Map("background"); + Assert.Empty(map.Zones); + } +}