Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }