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;
 }