Exemplo n.º 1
0
        public void ExecuteNotGenericWithNotNull()
        {
            bool executed = false;

            var eventMock = new ActionMock();

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

            eventMock.InvokeAction();

            Assert.IsTrue(executed);
        }
Exemplo n.º 2
0
        public void ExecuteNotGenericWithNull()
        {
            var eventMock = new ActionMock();

            eventMock.InvokeAction();
        }