public void Should_WriteFullScreenControl_WithCssStyle()
        {
            var control = new FullScreenControl(new FullScreenControlOptions {
                Container         = "container",
                HideIfUnsupported = true,
                Style             = new Components.Atlas.Either <ControlStyle, string>("#000000")
            }, ControlPosition.BottomLeft);

            var expectedJson = "{"
                               + "\"id\":\"" + control.Id + "\""
                               + ",\"type\":\"" + control.Type + "\""
                               + ",\"position\":\"" + control.Position.ToString() + "\""
                               + ",\"options\":{"
                               + "\"container\":\"" + control.Options.Container + "\""
                               + ",\"hideIfUnsupported\":" + control.Options.HideIfUnsupported
                               + ",\"style\":\"" + control.Options.Style.SecondChoice + "\""
                               + "}"
                               + "}";

            TestAndAssertWrite(control, expectedJson);
        }
Example #2
0
 private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     FullScreenControl.ExitFullscreen(this);
     this.Close();
 }