Esempio n. 1
0
        public void SceneManager_AddRemoveSprite_Test()
        {
            var sceneMgr = new SceneManager(Device, AssetManager);
            var sprite = TestHelpers.CreateSpriteMock(Device);

            Assert.IsTrue(sceneMgr.AddSprite(sprite));
            Assert.IsFalse(sceneMgr.AddSprite(sprite));

            Assert.IsTrue(sceneMgr.RemoveSprite(sprite));
            Assert.IsFalse(sceneMgr.RemoveSprite(sprite));
        }
Esempio n. 2
0
 public void SceneManager_Render_Test()
 {
     var sceneMgr = new SceneManager(Device, AssetManager);
     sceneMgr.AddRenderable(TestHelpers.CreateRenderableMock(Device));
     sceneMgr.AddSprite(TestHelpers.CreateSpriteMock(Device));
     Assert.IsTrue(sceneMgr.Render(RenderSystem, RenderSystem.PrimaryRenderTarget, false));
 }