Ejemplo n.º 1
0
        public void TestMethodAddDestroyLineScore()
        {
            Score score = new Score(ref ScoreText, ref ComboText, ref RecordText, ref DestroyLinesText, ref PlayerNick);

            score.AddDestroyLineScore(23123);
            PrivateObject privateScore   = new PrivateObject(score);
            int           destroyedLines = (int)privateScore.GetField("destroyedLines");

            Assert.AreEqual(23123, destroyedLines);
        }