From 5f1da34a3daf967b563e089ba1bde1ecb1b707ca Mon Sep 17 00:00:00 2001 From: Lucas DUFLOT Date: Mon, 3 Jun 2024 09:13:49 +0200 Subject: [PATCH] =?UTF-8?q?=EF=BF=BD=20fix=20drone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Trek-12/Tests/RulesTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Trek-12/Tests/RulesTests.cs b/source/Trek-12/Tests/RulesTests.cs index 56ec387..9e495b8 100644 --- a/source/Trek-12/Tests/RulesTests.cs +++ b/source/Trek-12/Tests/RulesTests.cs @@ -35,7 +35,7 @@ public class RulesTests Map map = new Map("background"); Cell selectedCell = map.Boards[0]; selectedCell.Value = 5; - Assert.False(rules.IsCellValid(selectedCell, map.Boards)); + Assert.False(rules.IsCellValid(selectedCell, map.Boards.ToList())); } [Fact] @@ -44,7 +44,7 @@ public class RulesTests Rules rules = new Rules(); Map map = new Map("background"); Cell selectedCell = map.Boards[0]; - Assert.True(rules.IsCellValid(selectedCell, map.Boards)); + Assert.True(rules.IsCellValid(selectedCell, map.Boards.ToList())); } [Fact] @@ -211,7 +211,7 @@ public class RulesTests Cell adjacentCell = new Cell(0, 1); adjacentCell.Value = 1; - map.Boards.Add(adjacentCell); + map.Boards.ToList().Add(adjacentCell); map.Zones.Add(new List { adjacentCell }); rules.IsZoneValidAndAddToZones(cell, map); @@ -228,7 +228,7 @@ public class RulesTests Cell adjacentCell = new Cell(0, 1); adjacentCell.Value = 1; - map.Boards.Add(adjacentCell); + map.Boards.ToList().Add(adjacentCell); rules.IsZoneValidAndAddToZones(cell, map); Assert.Contains(cell, map.Zones[0]); }