MainMenuTests QuitGame Method Delta Engine Documentation

Namespace: Breakout.Tests
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void QuitGame()
Examples

[Test]
public void QuitGame()
{
    if (!IsMockResolver)
        return; //ncrunch: no coverage 
    bool quit = false;
    menu.QuitGame += () => quit = true;
    var mouse = Resolve<MockMouse>();
    ClickAtPosition(mouse, new Vector2D(0.31f, 0.73f));
    Assert.IsTrue(quit);
}
See Also