public void TestCurrent()
        {
            // setup
            MainWindow window = new MainWindow();
            {
                // expect
                Assert.IsNull(MainWindow.Current);
            }

            {
                // when
                MainWindow.Current = window;

                // then
                Assert.AreSame(MainWindow.Current, window);
            }

            {
                // when
                MainWindow.Current = null;
                Assert.IsNull(MainWindow.Current);
                App app = AppTest.GetApp();
                app.MainWindow = window;

                // then
                Assert.AreSame(MainWindow.Current, window);
            }
        }
        public void TestQuit()
        {
            // setup
            MainWindow window = new MainWindow();
            App        app    = AppTest.GetApp();

            app.MainWindow = window;
            NotifyIcon notifyIcon = GetField <NotifyIcon>(window, "notifyIcon");

            Assert.IsTrue(notifyIcon.Visible);

            // when
            window.Quit();

            // then
            Assert.IsFalse(notifyIcon.Visible);
        }