Beispiel #1
0
        public void Renders(string placement)
        {
            if (WindowsVersion.CurrentContains("Server"))
            {
                Assert.Inconclusive("For some reason one pixel off here. Don't have the energy to chase it now.");
            }

            using var app = Application.AttachOrLaunch("Gu.Wpf.Geometry.Demo.exe", WindowName);
            var window = app.MainWindow;

            _ = window.FindListBox("Placements").Select(placement);
            var groupBox = window.FindGroupBox("Render");

            ImageAssert.AreEqual($"Images\\BoxBalloonWindow\\{TestImage.Current}\\{placement}.png", groupBox, TestImage.OnFail);
        }
Beispiel #2
0
        private static string GetCurrent()
        {
            if (WindowsVersion.IsWindows7())
            {
                return("Win7");
            }

            if (WindowsVersion.IsWindows10())
            {
                return("Win10");
            }

            if (WindowsVersion.CurrentContains("Windows Server 2019"))
            {
                return("WinServer2019");
            }

            return(WindowsVersion.CurrentVersionProductName);
        }