Namespace: DeltaEngine.Entities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Entities.EntitiesRunnerTests
6 unit tests call DeltaEngine.Entities.EntitiesRunner.NumberOfEntities
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test] public void EntityIsCreatedActiveAndAutomaticallyAddedToEntitySystem() { var entity = new MockEntity(); Assert.IsTrue(entity.IsActive); Assert.AreEqual(1, EntitiesRunner.Current.NumberOfEntities); }
[Test] public void InactivateEntity() { var entity = new MockEntity(); entity.IsActive = false; Assert.IsFalse(entity.IsActive); Assert.AreEqual(0, EntitiesRunner.Current.NumberOfEntities); }
[Test] public void ActivateEntity() { var entity = new MockEntity { IsActive = false }; entity.IsActive = true; Assert.AreEqual(1, EntitiesRunner.Current.NumberOfEntities); }
See Also