|
|
@ -22,16 +22,9 @@ public class TestTileBag
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public void Test_AddTileInBag()
|
|
|
|
public void Test_AddTileInBag()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Tile? t = null;
|
|
|
|
|
|
|
|
Tile tok = new(Shape.Club, Color.Green);
|
|
|
|
Tile tok = new(Shape.Club, Color.Green);
|
|
|
|
TileBag bag = new TileBag(2);
|
|
|
|
TileBag bag = new TileBag(2);
|
|
|
|
|
|
|
|
|
|
|
|
if (t != null && bag.AddTileInBag(t) == false)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Assert.True(bag.AddTileInBag(tok));
|
|
|
|
Assert.True(bag.AddTileInBag(tok));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Theory]
|
|
|
|
[Theory]
|
|
|
|