MapTests CheckGetColor Method Delta Engine Documentation

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

public void CheckGetColor()
Examples

[Test, CloseAfterFirstFrame]
public void CheckGetColor()
{
    Assert.AreEqual(Color.Gold, Map.GetColor(BlockType.Gold));
    Assert.AreEqual(Color.Orange, Map.GetColor(BlockType.GroundBrick));
    Assert.AreEqual(Color.Red, Map.GetColor(BlockType.PlatformBrick));
    Assert.AreEqual(Color.Purple, Map.GetColor(BlockType.PlatformTop));
    Assert.AreEqual(Color.Teal, Map.GetColor(BlockType.LevelBorder));
    Assert.AreEqual(Color.TransparentBlack, Map.GetColor(BlockType.None));
}
See Also