Entity2DTests LastColorReplacesColorComponentValue Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Tests
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void LastColorReplacesColorComponentValue()
Examples

[Test]
public void LastColorReplacesColorComponentValue()
{
    var entity = new Entity2D(Rectangle.Zero) { Color = Color.Red };
    Assert.AreEqual(Color.Red, entity.LastColor);
    entity.LastColor = Color.Blue;
    Assert.AreEqual(Color.Blue, entity.LastColor);
}
See Also