Esempio n. 1
0
        private void AssertClicksAreCorrect(IScreenObject control, IInputDevice inputDevice)
        {
            var clicks = new[]
            {
                new [] { 0, 0 },
                new [] { 2, 2 },
                new [] { -1, -55 },
                new [] { -100, 2 },
                new [] { 3, 4 },
                new [] { 1, 4 }
            };

            foreach (var click in clicks)
            {
                control.Click(click[0], click[1], 0);
                inputDevice.Received(1).Click(click[0] + 1, click[1] + 1, 0);
                inputDevice.ClearReceivedCalls();
            }
        }