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

[Test]
public void ToStringWithArrayAndBehavior()
{
    entityWithTags.Add(new Vector2D[2]);
    Assert.AreEqual("MockEntity Tags=Tag1, Tag2: Vector2D[]", entityWithTags.ToString());
    var entityWithRunner =
        new MockEntity().Start<MockUpdateBehavior>().Start<ComponentTests.Rotate>();
    Assert.AreEqual("MockEntity [MockUpdateBehavior, Rotate]", entityWithRunner.ToString());
}
See Also