public void Test_World_After_Destroy()
        {
            IWorld world = Root.CreateWorld();

            HandleUtils.ForceDestroy(world.Handle);

            // IWorld methods can't throw any exception after handle destroy
            Assert.IsNull(world.CreateActor());
            world.Clear();
            world.Dispose();

            Assert.IsNull(HandleUtils.TryGetReferenceHolder(world.Handle));
        }
        public void Test_Clear()
        {
            using (IWorld world = Root.CreateWorld())
            {
                for (int i = 0; i < 10; i++)
                {
                    world.CreateActor();
                }

                world.Clear();
                Assert.AreEqual(world.Actors.Count, 0);
            }
        }