public void DependencyProblem_accepts_Visitor()
        {
            var problem = new DependencyProblem();

            problem.AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Problem(problem));
        }
        public void DependencyProblem_accepts_Visitor()
        {
            var problem = new DependencyProblem();

            problem.AcceptVisitor(theVisitor);

            theVisitor.Received().Problem(problem);
        }
Exemplo n.º 3
0
 public void Problem(DependencyProblem problem)
 {
     _writer.Line(problem.Message);
 }