� fix drone
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

pull/96/head
Lucas DUFLOT 11 months ago
parent 99349370d7
commit 5f1da34a3d

@ -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<Cell> { 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]);
}

Loading…
Cancel
Save