Namespace: Asteroids
Assembly: Asteroids (in Asteroids.exe) Version: 1.1.1.0 (1.1.1)
Tests: Asteroids.Tests.PlayerShipTests
1 unit tests call Asteroids.PlayerShip.IsFiring
Assembly: Asteroids (in Asteroids.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: BooleanRemarks
Examples
[Test, CloseAfterFirstFrame] public void FireRocket() { if(IsMockResolver) return; //ncrunch: no coverage start bool firedRocket = false; playerShip.ProjectileFired += () => { firedRocket = true; }; playerShip.IsFiring = true; AdvanceTimeAndUpdateEntities(1f); Assert.IsTrue(firedRocket); } //ncrunch: no coverage end
See Also