private void ExpectNoEvents(ICurrentCellService target, Action test)
        {
            var helper = new CurrentCellServiceEventsHelper(target, new CurrentCellServiceEventsHelper.EventInvocationValidator((pc, c) =>
            {
                Assert.IsFalse(pc.HandlerInvoked, "PreviewChange event was raised");
                Assert.IsFalse(c.HandlerInvoked, "Changed event was raised");
            }));

            helper.RunTest(test);
        }
        private void ExpectNonCancelableEvents(ICurrentCellService target, Action test)
        {
            var helper = new CurrentCellServiceEventsHelper(target, new CurrentCellServiceEventsHelper.EventInvocationValidator((pc, c) =>
            {
                Assert.AreEqual(1, pc.HandlerInvocationCount, "Expected preview change to be raised once.");
                Assert.IsFalse(pc.LastInocationEventArgs.IsCancelable, "Expected preview change to non-cancelable.");
                Assert.AreEqual(1, c.HandlerInvocationCount, "Expected change event to be raised once.");
            }));

            helper.RunTest(test);
        }