DrawingTestHelper.DrawingTest.GetSpecialTolerance C# (CSharp) Method

GetSpecialTolerance() protected method

protected GetSpecialTolerance ( string testName ) : double
testName string
return double
		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;
			}
		}