Exemplo n.º 1
0
 public void Game_Constructor_Test()
 {
     var game = new Game("Test", 640, 480);
     Assert.AreEqual(640, game.Width);
     Assert.AreEqual(480, game.Height);
     Assert.AreEqual(1000 / 60, game.TargetElapsedTime);
 }
Exemplo n.º 2
0
 public RoamingCamera(Mouse mouse, Keyboard keyboard, Game game)
     : base(mouse, keyboard)
 {
     this.game = game;
 }
Exemplo n.º 3
0
 public void Game_SetInvalidTargetElapsedTime_Test()
 {
     var game = new Game("Test", 640, 480);
     game.TargetElapsedTime = 0;
 }