TwoHumanNetworkGameTests ClickInvalidSquare Method Delta Engine Documentation

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

public void ClickInvalidSquare()
Examples

[Test]
public void ClickInvalidSquare()
{
    var firstSquare = new Vector2D(ScreenSpace.Current.Left + Game.Border + 0.01f,
        ScreenSpace.Current.Top + Game.Border + 0.01f);
    ClickMouse(firstSquare);
    Assert.AreEqual("*** Player 1: 1 - Invalid Move! ***", game1.upperText.Text);
    Assert.AreEqual("*** Player 1: 1 (Waiting for other player's turn) ***",
        game2.upperText.Text);
}
See Also