Ejemplo n.º 1
0
        public void configured_dependency_accept_visitor()
        {
            var dependency = new ConfiguredDependency(GetType(), this);

            dependency.AcceptVisitor(visitor);

            visitor.AssertWasCalled(x => x.Configured(dependency));
        }
        public void Constant_accepts_Visitor()
        {
            var constant = new Constant(typeof(string), "a");

            constant.AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Constant(constant));
        }