コード例 #1
0
ファイル: ActionsTests.cs プロジェクト: rolspace/monads.net
        public void ExecuteNotGenericWithNotNull()
        {
            bool executed = false;

            var eventMock = new ActionMock();

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

            eventMock.InvokeAction();

            Assert.IsTrue(executed);
        }
コード例 #2
0
ファイル: ActionsTests.cs プロジェクト: rolspace/monads.net
        public void ExecuteNotGenericWithNull()
        {
            var eventMock = new ActionMock();

            eventMock.InvokeAction();
        }