예제 #1
0
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation)_expectations.Dequeue();
            return(_currentExpectation.VerifyExecution(_inputs));
        }
예제 #2
0
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
 public void AddCommandExpectation(string name, CommandExpectation expectation)
 {
     var command = (MockCommand) _commands[name];
     command.AddExpectation(expectation);
 }
예제 #4
0
        public int Execute()
        {
            if (_expectations.Count == 0)
            {
                throw new UnExpectedCallException(Name);
            }

            _currentExpectation = (CommandExpectation) _expectations.Dequeue();
            return _currentExpectation.VerifyExecution(_inputs);
        }
예제 #5
0
 public void AddExpectation(CommandExpectation expectation)
 {
     _expectations.Enqueue(expectation);
 }
        public void AddCommandExpectation(string name, CommandExpectation expectation)
        {
            var command = (MockCommand)_commands[name];

            command.AddExpectation(expectation);
        }