public void GetSpeedFails(int level) { Assert.Throws <ArgumentException>(() => { var speed = TetrisLevel.GetFramesPerRow(level); }); }
public void GetSpeed(int level, int expected) { var speed = TetrisLevel.GetFramesPerRow(level); Assert.AreEqual(expected, speed); }