WindowTests SwitchToFullscreenAndWindowedMode Method Delta Engine Documentation

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

public void SwitchToFullscreenAndWindowedMode()
Examples

[Test]
public void SwitchToFullscreenAndWindowedMode()
{
    Size sizeBeforeFullscreen = window.TotalPixelSize;
    window.SetFullscreen(new Size(1024, 768));
    window.SetWindowed();
    Assert.IsFalse(window.IsFullscreen);
    Assert.AreEqual(sizeBeforeFullscreen, window.TotalPixelSize);
}
See Also