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()
   );
 }
Пример #2
0
 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()
         );
 }
Пример #3
0
        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(); }
   );
 }