示例#1
0
        public void 山ツモテスト()
        {
            Yama testYama = new Yama();

            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH);
            foreach (var omote in testYama.GetDoraMarkers())
            {
                Debug.WriteLine("Dora = "+omote.PaiString);
            }



            while( testYama.GetRestYamaNum() > 0 )
            {
                Debug.WriteLine(testYama.DoTsumo().PaiString);
            }
        }
示例#2
0
        public void 山リンシャンテスト()
        {
            Yama testYama = new Yama();

            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH);
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH - 1);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsFalse(testYama.CanKan());

        }