From 4df6165fa93c7caeea86385312415e312de4d11f Mon Sep 17 00:00:00 2001
From: Moli <13026959681@163.com>
Date: 星期二, 05 五月 2026 01:10:39 +0800
Subject: [PATCH] 暂存

---
 src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs b/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
index d4006ce..01c32f2 100644
--- a/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
+++ b/src/Moli.Desktop.Tests/Interop/Win32InteropContractTests.cs
@@ -1,3 +1,5 @@
+using Moli.Desktop.Interop;
+
 namespace Moli.Desktop.Tests.Interop;
 
 public class Win32InteropContractTests
@@ -12,12 +14,16 @@
         interop.SetToolWindow(hwnd, true);
         interop.SetNoActivate(hwnd, true);
         interop.SetLayered(hwnd, true, 128);
+        interop.MoveToDesktopLayer(hwnd, DesktopLayerMode.WorkerW, new Moli.Desktop.Layout.RectD(10, 20, 300, 120));
+        interop.RestoreTopLevelWindow(hwnd);
         interop.SetBottomMost(hwnd);
 
         Assert.True(interop.ClickThroughEnabled);
         Assert.True(interop.ToolWindowEnabled);
         Assert.True(interop.NoActivateEnabled);
         Assert.Equal(128, interop.Opacity);
+        Assert.Equal(new Moli.Desktop.Layout.RectD(10, 20, 300, 120), interop.LayerBounds);
+        Assert.True(interop.RestoredTopLevel);
         Assert.Single(interop.GetMonitors());
     }
 }

--
Gitblit v1.9.1