Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgumentDefinition"/> struct.
 /// </summary>
 /// <param name="returnValue">
 /// The return value.
 /// </param>
 public ArgumentDefinition(object returnValue)
 {
     this.InOutRef = InOutRefArgument.OutArg;
     this.returnValue = returnValue;
     this.constraint = Is.Anything();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgumentDefinition"/> struct.
 /// </summary>
 /// <param name="constraint">
 /// The constraint.
 /// </param>
 /// <param name="returnValue">
 /// The return value.
 /// </param>
 public ArgumentDefinition(AbstractConstraint constraint, object returnValue)
 {
     this.InOutRef = InOutRefArgument.RefArg;
     this.constraint = constraint;
     this.returnValue = returnValue;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgumentDefinition"/> struct.
 /// </summary>
 /// <param name="constraint">
 /// The constraint.
 /// </param>
 public ArgumentDefinition(AbstractConstraint constraint)
 {
     this.InOutRef = InOutRefArgument.InArg;
     this.constraint = constraint;
     this.returnValue = null;
 }
Example #4
0
 public ArgumentDefinition(object returnValue)
 {
     this.InOutRef    = InOutRefArgument.OutArg;
     this.returnValue = returnValue;
     this.constraint  = Is.Anything();
 }
Example #5
0
 public ArgumentDefinition(AbstractConstraint constraint, object returnValue)
 {
     this.InOutRef    = InOutRefArgument.RefArg;
     this.constraint  = constraint;
     this.returnValue = returnValue;
 }
Example #6
0
 public ArgumentDefinition(AbstractConstraint constraint)
 {
     this.InOutRef    = InOutRefArgument.InArg;
     this.constraint  = constraint;
     this.returnValue = null;
 }