public void HonorTileCanBelongToSameGroup_DifferentSuit_IsFalse() { var tileA = new HonorTile(Suit.Wind, HonorType.East); var tileB = new HonorTile(Suit.Dragon, HonorType.Red); Assert.IsFalse(tileA.CanBelongToSameGroup(tileB)); }
public void HonorTileCanBelongToSameGroup_SameData_IsTrue() { var tileA = new HonorTile(Suit.Wind, HonorType.East); var tileB = new HonorTile(Suit.Wind, HonorType.East); Assert.IsTrue(tileA.CanBelongToSameGroup(tileB)); }
public void HonorTileCanBelongToSameGroup_ThreeTilesOfSameDataPlusSuitedTile_IsTrue() { var tileA = new HonorTile(Suit.Wind, HonorType.East); var tileB = new HonorTile(Suit.Wind, HonorType.East); var tileC = new HonorTile(Suit.Wind, HonorType.East); var tileD = new SuitedTile(Suit.Bamboo, 9); Assert.IsFalse(tileA.CanBelongToSameGroup(tileB, tileC, tileD)); }
public void HonorTileCanBelongToSameGroup_FiveTilesOfSameData_IsFalse() { var tileA = new HonorTile(Suit.Wind, HonorType.East); var tileB = new HonorTile(Suit.Wind, HonorType.East); var tileC = new HonorTile(Suit.Wind, HonorType.East); var tileD = new HonorTile(Suit.Wind, HonorType.East); var tileE = new HonorTile(Suit.Wind, HonorType.East); Assert.IsTrue(tileA.CanBelongToSameGroup(tileB, tileC, tileD, tileE)); }