MainMenuTests StartGame 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 StartGame()
Examples

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