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