Esempio n. 1
0
        public void testEntityCount()
        {
            Entity entity = new Entity();
            Id     id     = new Id();

            id.Value = 1;
            entity.Add(id);
            Name name = new Name();

            name.Value = "bob";
            entity.Add(name);

            int Count = Ash.EntityCount();

            Assert.AreEqual(Count, 0);

            Ash.AddEntity(entity);
            Count = Ash.EntityCount();
            Assert.AreEqual(Count, 1);

            Ash.RemoveEntity(entity);
            Count = Ash.EntityCount();
            Assert.AreEqual(Count, 0);
        }