EntitiesRunnerTests RemoveAllEntities Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Entities
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RemoveAllEntities()
Examples

[Test]
public void RemoveAllEntities()
{
    new MockEntity();
    new MockEntity().Start<MockUpdateBehavior>();
    entities.RunEntities();
    Assert.AreEqual(2, EntitiesRunner.Current.NumberOfEntities);
    EntitiesRunner.Current.RemoveAll();
    Assert.AreEqual(0, EntitiesRunner.Current.NumberOfEntities);
}
See Also