Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public void CreateMockExpression_ForTypeNullValueGiven_ShouldThrowArgumentNullException()
        {
            var castleMockProvider = new CastleMockProvider();

            castleMockProvider.CreateMockExpression(null);
        }