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 ToStringWithTags() { entityWithTags.ClearTags(); Assert.AreEqual("MockEntity", entityWithTags.ToString()); entityWithTags.AddTag("Empty"); entityWithTags.AddTag("Empty"); entityWithTags.AddTag("Entity"); Assert.AreEqual("MockEntity Tags=Empty, Entity", entityWithTags.ToString()); entityWithTags.RemoveTag("Entity"); Assert.AreEqual("MockEntity Tags=Empty", entityWithTags.ToString()); entityWithTags.ClearTags(); Assert.AreEqual("MockEntity", entityWithTags.ToString()); }
See Also