예제 #1
0
        private static MethodDeclarationSyntax CreateMethodFromExceptionType(AttributeArgumentSyntax attributeArgument, MethodDeclarationSyntax node)
        {
            var exceptionType = attributeArgument.GetExceptionType();
            var rawStatement  = CreateAssert(exceptionType, node);

            return(ReplaceMethodBody(rawStatement, node));
        }