예제 #1
0
 public void GetSpeedFails(int level)
 {
     Assert.Throws <ArgumentException>(() =>
     {
         var speed = TetrisLevel.GetFramesPerRow(level);
     });
 }
예제 #2
0
        public void GetSpeed(int level, int expected)
        {
            var speed = TetrisLevel.GetFramesPerRow(level);

            Assert.AreEqual(expected, speed);
        }