EntityTests GetComponentsForEntityDebugger 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 GetComponentsForEntityDebugger()
Examples

[Test]
public void GetComponentsForEntityDebugger()
{
    var entityWithComponent = new MockEntityWithStringComponent();
    entityWithComponent.Add(entityWithTags);
    List<object> components = entityWithComponent.GetComponentsForSaving();
    Assert.AreEqual(2, components.Count);
    Assert.AreEqual("Hello", components[0]);
    Assert.AreEqual(entityWithTags, components[1]);
}
See Also