EntitiesRunner RemoveAll Method Delta Engine Documentation

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

public void RemoveAll()
Remarks

Tests: DeltaEngine.Tests.Entities.EntitiesRunnerTests
Examples

1 unit tests call DeltaEngine.Entities.EntitiesRunner.RemoveAll
[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