Namespace: Breakout.Tests
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void ResetBallLosesLive() { var score = Resolve<Score>(); bool lost = false; score.GameOver += () => lost = true; var ball = Resolve<BallInLevel>(); ball.ResetBall(); ball.ResetBall(); ball.ResetBall(); Assert.IsTrue(lost); }
See Also