public void Is_valid_with_IGraphicsDeviceService() { var service = new MockGraphicsDeviceService(); Game.Services.AddService(typeof(IGraphicsDeviceService), service); Assert.That(Game, HasThisProperty.SameAs(service.GraphicsDevice)); }
public void FixtureSetup() { _service = MockGraphicsDeviceService.AddRef(800, 600); }