Example #1
0
 /// <summary>
 ///     Creates an instance of <see cref="Case" /> for a parameter specific <see cref="SmartTests.Criteria" /> expression.
 /// </summary>
 /// <param name="parameterName">
 ///     The name of the parameter for which to associate a <see cref="SmartTests.Criteria" />
 ///     expression.
 /// </param>
 /// <param name="criteria">
 ///     The <see cref="SmartTests.Criteria" /> expression for the provided
 ///     <paramref name="parameterName" />.
 /// </param>
 /// <exception cref="ArgumentNullException">If <paramref name="criteria" /> is <c>null</c>.</exception>
 public Case(string parameterName, Criteria criteria)
 {
     ParameterName = parameterName;
     Criteria      = criteria ?? throw new ArgumentNullException(nameof(criteria));
 }
Example #2
0
 /// <summary>
 ///     Creates an instance of <see cref="Case" /> for a global <see cref="SmartTests.Criteria" /> expression.
 /// </summary>
 /// <param name="criteria">The <see cref="SmartTests.Criteria" /> expression.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="criteria" /> is <c>null</c>.</exception>
 public Case(Criteria criteria)
 {
     Criteria = criteria ?? throw new ArgumentNullException(nameof(criteria));
 }