Namespace: TinyPlatformer
Assembly: TinyPlatformer (in TinyPlatformer.exe) Version: 1.1.1.0 (1.1.1)
Tests: TinyPlatformer.Tests.ActorTests
3 unit tests call TinyPlatformer.Actor.WantsToGoLeft
Assembly: TinyPlatformer (in TinyPlatformer.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: BooleanRemarks
Examples
[Test] public void CheckInitialPlayerDesiredMovement() { Assert.IsFalse(player.WantsToGoLeft); Assert.IsFalse(player.WantsToGoRight); Assert.IsFalse(player.WantsToJump); }
[Test] public void CheckInitialMonsterDesiredMovement() { Assert.IsFalse(monster.WantsToGoLeft); Assert.IsTrue(monster.WantsToGoRight); Assert.IsFalse(monster.WantsToJump); }
[Test] public void CheckInitialTreasureDesiredMovement() { Assert.IsFalse(treasure.WantsToGoLeft); Assert.IsFalse(treasure.WantsToGoRight); Assert.IsFalse(treasure.WantsToJump); }
See Also