Example #1
0
        protected override double GetExpectedNorm(double myNorm)
        {
            if (CreateResults)
            {
                ExpectedResults.WriteNorm(TestName, myNorm);
            }

            return(myNorm);
        }
Example #2
0
		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;
		}
Example #3
0
		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;
		}
Example #4
0
 protected override double GetExpectedNorm(double myNorm)
 {
     return(ExpectedResults.GetNorm(TestName));
 }