コード例 #1
0
        public void HonorTileIsTripletTest_ProperTripletDataTooFewTiles_IsFalse()
        {
            var tileA = new HonorTile(Suit.Wind, HonorType.East);
            var tileB = new HonorTile(Suit.Wind, HonorType.East);

            Assert.IsFalse(HonorTile.IsTriplet(tileA, tileB));
        }
コード例 #2
0
        public void HonorTileIsIsTripletTest_WrongHonorTypes_IsFalse()
        {
            var tileA = new HonorTile(Suit.Wind, HonorType.East);
            var tileB = new HonorTile(Suit.Wind, HonorType.East);
            var tileC = new HonorTile(Suit.Wind, HonorType.South);

            Assert.IsFalse(HonorTile.IsTriplet(tileA, tileB, tileC));
        }
コード例 #3
0
        public void HonorTileIsTripletTest_WrongSuit_IsFalse()
        {
            var tileA = new HonorTile(Suit.Wind, HonorType.East);
            var tileB = new HonorTile(Suit.Wind, HonorType.East);
            var tileC = new HonorTile(Suit.Dragon, HonorType.Red);

            Assert.IsFalse(HonorTile.IsTriplet(tileA, tileB, tileC));
        }
コード例 #4
0
        public void HonorTileIsTripletTest_ProperTripletData_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);

            Assert.IsTrue(HonorTile.IsTriplet(tileA, tileB, tileC));
        }