EntitiesRunnerTests AddingAndRemovingHandlerInTheSameFrameExecutesNoCode 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 AddingAndRemovingHandlerInTheSameFrameExecutesNoCode()
Examples

[Test]
public void AddingAndRemovingHandlerInTheSameFrameExecutesNoCode()
{
    var entity = new MockEntity().Start<IncrementCounter>();
    entity.Stop<IncrementCounter>();
    entities.RunEntities();
    Assert.IsFalse(entity.Contains<string>());
}
See Also