Namespace: Breakout
Assembly: Breakout (in Breakout.exe) Version: 1.1.1.0 (1.1.1)
Tests: Breakout.Tests.ScoreTests
2 unit tests call Breakout.Score.NextLevel
Assembly: Breakout (in Breakout.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Remarks
Examples
[Test] public void NextLevelWithoutInitialization() { bool isGameOver = false; score.GameOver += () => isGameOver = true; Assert.AreEqual(1, score.Level); score.NextLevel(); Assert.AreEqual(2, score.Level); Assert.IsFalse(isGameOver); }
[Test] public void NextLevelWithLevelInitialization() { Resolve<Level>(); bool isGameOver = false; score.GameOver += () => isGameOver = true; Assert.AreEqual(1, score.Level); score.NextLevel(); Assert.AreEqual(2, score.Level); Assert.IsFalse(isGameOver); }
See Also