Entity2DTests LastColorAddsColorComponentIfNotAddedBefore 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 LastColorAddsColorComponentIfNotAddedBefore()
Examples

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