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

[Test]
public void GetAndSetComponent()
{
    entityWithTags.Set(Color.Red);
    Assert.AreEqual(Color.Red, entityWithTags.Get<Color>());
    entityWithTags.Set(Color.Green);
    Assert.AreEqual(Color.Green, entityWithTags.Get<Color>());
}
See Also