Example #1
0
        public void CreateRemove()
        {
            var componentManager = new StubComponentManager();
            var entityManager    = new StubEntityManager();
            var entity           = new Entity(entityManager, componentManager);

            entity.Release();
        }
Example #2
0
        public void TestToString()
        {
            var entityManager    = new StubEntityManager();
            var componentManager = new ComponentManager(new StubSetManager());
            var entity           = new Entity(entityManager, componentManager, "entity name")
            {
                new AComponent("component name")
            };
            var str = entity.ToString();

            Assert.IsTrue(str.Contains("entity name"), str);
            Assert.IsTrue(str.Contains("component name"), str);
        }