MapTests CheckEntityLoading 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 CheckEntityLoading()
Examples

[Test, CloseAfterFirstFrame]
public void CheckEntityLoading()
{
    Assert.AreEqual(1, map.actorList.FindAll(actor => actor.type == "player").Count);
    Assert.AreEqual(1, map.actorList.FindAll(actor => actor.type == "monster").Count);
    Assert.AreEqual(1, map.actorList.FindAll(actor => actor.type == "treasure").Count);
}
See Also