public void CreateMockExpression_StringBuilderTypeGiven_ShouldCreateExpressionReturnStringBuilderInstance()
        {
            var castleMockProvider = new CastleMockProvider();

            var result = castleMockProvider.CreateMockExpression(typeof(StringBuilder)) as MethodCallExpression;

            result.Should().NotBeNull();
            result.Type.Should().Be(typeof(StringBuilder));
        }
Exemplo n.º 2
0
 public void CreateMockExpression_ForTypeNullValueGiven_ShouldThrowArgumentNullException()
 {
     var castleMockProvider = new CastleMockProvider();		 
     castleMockProvider.CreateMockExpression(null);		 
 }