protected override double GetExpectedNorm(double myNorm) { if (CreateResults) { ExpectedResults.WriteNorm(TestName, myNorm); } return(myNorm); }
public ExpectedResultsHash () { try { using (StreamReader s = new StreamReader (FileName)) { _suite = (ExpectedResults)TestSuiteSerializer.Deserialize(s); } } catch { _suite = new ExpectedResults (); } _hash = new Hashtable(_suite.Tests.Count); foreach (ExpectedResult res in _suite.Tests) _hash[res.TestName] = res.Norm; }
protected override double GetExpectedNorm(double myNorm) { return(ExpectedResults.GetNorm(TestName)); }