From 91365a31464283e5581bad159ce59dc2415eba49 Mon Sep 17 00:00:00 2001 From: seraphima Date: Thu, 28 Mar 2024 14:31:59 +0100 Subject: [PATCH] missing data in test --- .../UIInitializationTests.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/modules/fancyzones/UITests-FancyZonesEditor/UIInitializationTests.cs b/src/modules/fancyzones/UITests-FancyZonesEditor/UIInitializationTests.cs index 1bc461de9d..6c35a7608c 100644 --- a/src/modules/fancyzones/UITests-FancyZonesEditor/UIInitializationTests.cs +++ b/src/modules/fancyzones/UITests-FancyZonesEditor/UIInitializationTests.cs @@ -808,6 +808,33 @@ namespace Microsoft.FancyZonesEditor.UITests [TestMethod] public void FirstLaunch() { + EditorParameters editorParameters = new EditorParameters(); + ParamsWrapper parameters = new ParamsWrapper + { + ProcessId = 1, + SpanZonesAcrossMonitors = false, + Monitors = new List + { + new NativeMonitorDataWrapper + { + Monitor = "monitor-1", + MonitorInstanceId = "instance-id-1", + MonitorSerialNumber = "serial-number-1", + MonitorNumber = 1, + VirtualDesktop = "{FF34D993-73F3-4B8C-AA03-73730A01D6A8}", + Dpi = 192, // 200% scaling + LeftCoordinate = 0, + TopCoordinate = 0, + WorkAreaHeight = 1040, + WorkAreaWidth = 1920, + MonitorHeight = 1080, + MonitorWidth = 1920, + IsSelected = true, + }, + }, + }; + FancyZonesEditorSession.Files.ParamsIOHelper.WriteData(editorParameters.Serialize(parameters)); + // files not yet exist FancyZonesEditorSession.Files.LayoutTemplatesIOHelper.DeleteFile(); FancyZonesEditorSession.Files.CustomLayoutsIOHelper.DeleteFile();