protected NBiConstraint InstantiateConstraint(FasterThanXml fasterThanXml)
 {
     var ctr = new FasterThanConstraint();
     ctr = ctr.MaxTimeMilliSeconds(fasterThanXml.MaxTimeMilliSeconds);
     if (fasterThanXml.CleanCache)
         ctr = ctr.CleanCache();
     if (fasterThanXml.TimeOutMilliSeconds > 0)
         ctr = ctr.TimeOutMilliSeconds(fasterThanXml.TimeOutMilliSeconds);
     return ctr;
 }
Exemplo n.º 2
0
 protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(FasterThanXml fasterThanXml)
 {
     var ctr = new FasterThanConstraint();
     ctr = ctr.MaxTimeMilliSeconds(fasterThanXml.MaxTimeMilliSeconds);
     if (fasterThanXml.CleanCache)
         ctr = ctr.CleanCache();
     if (fasterThanXml.TimeOutMilliSeconds > 0)
         ctr = ctr.TimeOutMilliSeconds(fasterThanXml.TimeOutMilliSeconds);
     return ctr;
 }