InteractiveButtonTests ExitingMakesItNormalize Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ExitingMakesItNormalize()
Examples

[Test, CloseAfterFirstFrame]
public void ExitingMakesItNormalize()
{
    SetMouseState(State.Released, Vector2D.Half);
    SetMouseState(State.Released, new Vector2D(0.0f, 0.22f));
    Assert.AreEqual(BaseSize.Width, button.Size.Width, 0.05f);
    Assert.AreEqual(BaseSize.Height, button.Size.Height, 0.05f);
}
See Also