예제 #1
0
        public void ActiveWindowHandleNotNull()
        {
            var paw = new PositionActiveWindow();
            var awt = paw.GetActiveWindowTitle();

            Assert.NotNull(awt);
        }
예제 #2
0
        public void ActiveWindowRectangleValid()
        {
            var paw = new PositionActiveWindow();
            var awr = paw.GetActiveWindowRectangle();

            Assert.IsType <int>(awr.Left);
        }
예제 #3
0
        public void ScreenRectangleNotNull()
        {
            var paw = new PositionActiveWindow();
            var sr  = paw.GetScreenRectangle();

            Assert.True(sr.Left >= 0);
        }
예제 #4
0
        public void CenterActiveWindowPositionNoException()
        {
            var paw = new PositionActiveWindow();

            paw.CenterActiveWindowPosition(); // using default parameter settings when none provided
            Assert.IsTrue(true);
        }