| | |
| | | using Moli.Desktop.Interop; |
| | | |
| | | namespace Moli.Desktop.Tests.Interop; |
| | | |
| | | public class Win32InteropContractTests |
| | |
| | | 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()); |
| | | } |
| | | } |