public void TestCleanPexesoBoard() { //arrange PexesoBoard board1 = new PexesoBoard(4, 4); //arrange board1.AddToPexesoBoard(0, 0); board1.AddToPexesoBoard(0, 1); board1.CleanPexesoBoard(); //assert Assert.IsNull(board1.GetPexesoCard(0, 0)); Assert.IsNull(board1.GetPexesoCard(0, 1)); }
public void TestAddToPexesoBoard() { //arrange PexesoBoard board1 = new PexesoBoard(4, 4); PexesoBoard board2 = new PexesoBoard(8, 8); //act board1.AddToPexesoBoard(0, 0); board2.AddToPexesoBoard(7, 7); //assert board1.GetPexesoCard(0, 0).ToString(); Assert.IsNotNull(board1.GetPexesoCard(0, 0)); Assert.IsNotNull(board2.GetPexesoCard(7, 7)); }