Exemplo n.º 1
0
 /// <inheritdoc />
 protected override SpecificationResult EvaluateImpl()
 {
     if (Verify())
     {
         return(SpecificationResult.CreateSuccess());
     }
     else
     {
         return(SpecificationResult.CreateComparisonFailure(expectedValue, ActualValue));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// <para>
 /// Internal implementation of <see cref="Evaluate" />.
 /// </para>
 /// <para>
 /// Any exceptions thrown by this method are interpreted as evaluation failures.
 /// </para>
 /// </summary>
 /// <returns>The specification result</returns>
 protected virtual SpecificationResult EvaluateImpl()
 {
     if (Verify())
     {
         return(SpecificationResult.CreateSuccess());
     }
     else
     {
         return(SpecificationResult.CreateCriteriaFailure(actualValue));
     }
 }