Verify() public method

public Verify ( ) : System.Result
return System.Result
コード例 #1
0
    public Result Run(Specification specification)
    {
      _listener.OnSpecificationStart(specification.GetInfo());
      var result = specification.Verify();
      _listener.OnSpecificationEnd(specification.GetInfo(), result);

      return result;
    }
コード例 #2
0
    public Result Run(Specification specification)
    {
      _listener.OnSpecificationStart(specification.GetInfo());
      var result = specification.Verify();
      result = _resultSupplementers.Aggregate(result, (r, supplement) => supplement.SupplementResult(r));
      _listener.OnSpecificationEnd(specification.GetInfo(), result);

      return result;
    }