DrawingTests TestViewportPixelSize Method Delta Engine Documentation

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

public void TestViewportPixelSize()
Examples

[Test, CloseAfterFirstFrame]
public void TestViewportPixelSize()
{
    var drawing = Resolve<Drawing>();
    var window = Resolve<Window>();
    window.ViewportPixelSize = new Size(800, 600);
    Assert.AreEqual(new Size(800, 600), drawing.ViewportPixelSize);
}
See Also