예제 #1
0
        public void ExecuteGenericWithNotNull()
        {
            var executed = false;

            var eventMock = new ActionTMock <string>();

            eventMock.TestAction += arg => executed = arg == "Test";

            eventMock.InvokeAction("Test");

            Assert.IsTrue(executed);
        }
예제 #2
0
        public void ExecuteGenericWithNull()
        {
            var eventMock = new ActionTMock <string>();

            eventMock.InvokeAction("Test");
        }