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

[Test]
public void CreateAndGetComponent()
{
    Assert.AreEqual(new Color(), entityWithTags.GetOrDefault(new Color()));
    entityWithTags.Set(Color.Red);
    Assert.AreEqual(Color.Red, entityWithTags.GetOrDefault(new Color()));
}
See Also