Example #1
0
        public static MethodCallBuilder AddMethodCall(
            this AssignmentBuilder builder,
            string?methodName = null)
        {
            MethodCallBuilder methodCallBuilder = MethodCallBuilder
                                                  .New()
                                                  .SetDetermineStatement(false);

            if (methodName is not null)
            {
                methodCallBuilder.SetMethodName(methodName);
            }

            builder.SetRighthandSide(methodCallBuilder);

            return(methodCallBuilder);
        }
Example #2
0
 public ExceptionBuilder SetException(string exception)
 {
     _method.SetMethodName(exception);
     return(this);
 }