public void InitDummy()//13*4*2 + 2 { Dummy.Clear(); Tile tile; TileColor color = TileColor.RED; var type = Enum.GetValues(color.GetType()); for (int j = 0; j < 2; j++) { foreach (TileColor v in type) { for (int k = 1; k <= 13; k++) { tile = new NumberTile(v, k); Dummy.Add(tile); } } } Dummy.Add(new JokerTile(TileColor.RED)); Dummy.Add(new JokerTile(TileColor.BLACK)); return; }
public void TestAdd(int a, int b, int want) { Assert.Equal(want, t.Add(a, b)); }