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;
 }
Esempio 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;
 }