Example #1
0
        public void ExecuteNotGenericWithNotNull()
        {
            bool executed = false;

            var eventMock = new ActionMock();

            eventMock.TestAction += () => executed = true;

            eventMock.InvokeAction();

            Assert.IsTrue(executed);
        }
Example #2
0
        public void ExecuteNotGenericWithNull()
        {
            var eventMock = new ActionMock();

            eventMock.InvokeAction();
        }