public void TestConstructor() { // This should work even without a graphics device service since the services // should only be queried in Initialize() to allow for order-free initialization GraphicsDeviceDrawableComponent testComponent = new GraphicsDeviceDrawableComponent( new GameServiceContainer() ); }
public void TestThrowOnInitializeWithoutGraphicsDeviceService() { GraphicsDeviceDrawableComponent testComponent = new GraphicsDeviceDrawableComponent( new GameServiceContainer() ); Assert.Throws <InvalidOperationException>( delegate() { testComponent.Initialize(); } ); }
public void TestThrowOnInitializeWithoutGraphicsDeviceService() { GraphicsDeviceDrawableComponent testComponent = new GraphicsDeviceDrawableComponent( new GameServiceContainer() ); Assert.Throws<InvalidOperationException>( delegate() { testComponent.Initialize(); } ); }