コード例 #1
0
ファイル: MockCommand.cs プロジェクト: stgwilli/structuremap
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation)_expectations.Dequeue();
            return(_currentExpectation.VerifyExecution(_inputs));
        }
コード例 #2
0
ファイル: MockCommand.cs プロジェクト: hp4711/structuremap
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation) _expectations.Dequeue();
            return _currentExpectation.VerifyExecution(_inputs);
        }