public void ExpressionOverridingAcceptMethod ()
    {
      var visitorMock = MockRepository.GenerateMock<SpecificVisitor> ();
      
      var expression = new TestableExtensionExpressionWithSpecificVisitor (typeof (int));
      ExtensionExpressionTestHelper.CallAccept (expression, visitorMock);

      visitorMock.AssertWasCalled (mock => mock.VisitTestableExtensionExpression (expression));
    }
Пример #2
0
 public virtual Expression VisitTestableExtensionExpression(TestableExtensionExpressionWithSpecificVisitor expression)
 {
     return(expression);
 }
Пример #3
0
 public virtual Expression VisitTestableExtensionExpression (TestableExtensionExpressionWithSpecificVisitor expression)
 {
   return expression;
 }