/// <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(); }
/// <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; }
/// <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; }
public ArgumentDefinition(object returnValue) { this.InOutRef = InOutRefArgument.OutArg; this.returnValue = returnValue; this.constraint = Is.Anything(); }
public ArgumentDefinition(AbstractConstraint constraint, object returnValue) { this.InOutRef = InOutRefArgument.RefArg; this.constraint = constraint; this.returnValue = returnValue; }
public ArgumentDefinition(AbstractConstraint constraint) { this.InOutRef = InOutRefArgument.InArg; this.constraint = constraint; this.returnValue = null; }