QuadraticScreenSpaceTests TestViewportSizeChanged Method Delta Engine Documentation

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

public void TestViewportSizeChanged()
Examples

[Test]
public void TestViewportSizeChanged()
{
    window.ViewportPixelSize = new Size(800, 800);
    var screen = new QuadraticScreenSpace(window);
    Action checkSize = delegate { Assert.AreEqual(Rectangle.One, screen.Viewport); };
    screen.ViewportSizeChanged += checkSize;
    window.ViewportPixelSize = new Size(800, 800);
    screen.ViewportSizeChanged -= checkSize;
}
See Also