protected double GetSpecialTolerance(string testName) {
try {
string shortTestName = testName.Substring( testName.LastIndexOf(".") + 1 );
object o = SpecialTolerance[shortTestName];
if (o == null)
return DEFAULT_IMAGE_TOLERANCE;
return Convert.ToDouble(o);
}
catch (System.Exception) {
return DEFAULT_IMAGE_TOLERANCE;
}
}