You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae201_qwirkle/Qwirkle/TestBase/TestBoard.cs

32 lines
674 B

using QwirkleClassLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestBase
{
public class TestBoard
{
[Fact]
public void TestConstructor()
{
List<Cell> c = new List<Cell>();
for (int i = 0; i < 12; i++)
{
for (int j = 0; j < 12; j++)
{
Cell localcell = new(i, j);
c.Add(localcell);
}
}
Board b = new Board();
Assert.NotNull(c);
Assert.Equal(c, b.GetCells());
}
}
}