LevelTests TestLevelTileColor Method Delta Engine Documentation

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

public void TestLevelTileColor()
Examples

[Test, CloseAfterFirstFrame]
public void TestLevelTileColor()
{
    var level = new MockLevel(new Size(5));
    Assert.AreEqual(Color.LightGray, level.GetColor(LevelTileType.Blocked));
    Assert.AreEqual(Color.CornflowerBlue, level.GetColor(LevelTileType.Placeable));
    Assert.AreEqual(Color.LightBlue, level.GetColor(LevelTileType.BlockedPlaceable));
    Assert.AreEqual(Color.LightBlue, level.GetColor(LevelTileType.LightBlue));
    Assert.AreEqual(Color.Red, level.GetColor(LevelTileType.Red));
    Assert.AreEqual(Color.Green, level.GetColor(LevelTileType.Green));
    Assert.AreEqual(Color.Blue, level.GetColor(LevelTileType.Blue));
    Assert.AreEqual(Color.Yellow, level.GetColor(LevelTileType.Yellow));
    Assert.AreEqual(Color.Brown, level.GetColor(LevelTileType.Brown));
    Assert.AreEqual(Color.Gray, level.GetColor(LevelTileType.Gray));
    Assert.AreEqual(Color.PaleGreen, level.GetColor(LevelTileType.SpawnPoint));
    Assert.AreEqual(Color.DarkGreen, level.GetColor(LevelTileType.ExitPoint));
    Assert.AreEqual(Color.Black, level.GetColor(LevelTileType.Nothing));
    Assert.AreEqual(Color.TransparentBlack, level.GetColor(LevelTileType.NoSelection));
}
See Also