Example #1
0
        public void call_teh_sentence_method()
        {
            var sentence = new Sentence();
            var visitor  = MockRepository.GenerateMock <IGrammarVisitor>();
            var step     = new Step();

            sentence.AcceptVisitor(visitor, step);

            visitor.AssertWasCalled(x => x.Sentence(sentence, step));
        }