DeviceTests SetFullscreenCallsDevicesOnFullscreenChanged 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 SetFullscreenCallsDevicesOnFullscreenChanged()
Examples

[Test]
public void SetFullscreenCallsDevicesOnFullscreenChanged()
{
    var device = Resolve<Device>() as MockDevice;
    if (device == null)
        return; //ncrunch: no coverage
    Assert.IsFalse(device.OnFullscreenChangedCalled);
    var window = Resolve<Window>();
    window.SetFullscreen(Size.One);
    Assert.IsTrue(device.OnFullscreenChangedCalled);
}
See Also