Namespace: DeltaEngine.Tests.Entities
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void ToStringWithComponentAndList() { entityWithTags.IsActive = false; Assert.AreEqual("<Inactive> MockEntity Tags=Tag1, Tag2", entityWithTags.ToString()); var entityWithComponent = new MockEntity().Add(new object()).Add(new Vector2D(1, 2)); Assert.AreEqual("MockEntity: Object, Vector2D=1, 2", entityWithComponent.ToString()); var entityWithList = new MockEntity().Add(new List<Color>()); Assert.AreEqual("MockEntity: List<Color>", entityWithList.ToString()); }
See Also