Esempio n. 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);
        }
Esempio n. 2
0
        public void ExecuteGenericWithNull()
        {
            var eventMock = new ActionTMock <string>();

            eventMock.InvokeAction("Test");
        }