using QwirkleClassLibrary; namespace TestBase; public class TestBoard { public static IEnumerable Data_Board() { yield return new object[] { true, new Cell(0,0), new Tile(Shape.Round, Color.Red) }; yield return new object[] { false, new Cell(0,0), new Tile(Shape.Round, Color.Red) }; } [Theory] [MemberData(nameof(Data_Board))] public void Test_AddTile(bool except, Cell c, Tile t) { if (!except) { c.SetTile(t); Assert.False(c.SetTile(t)); return; } Assert.True(c.SetTile(t)); } }