Range
This commit is contained in:
@ -141,7 +141,7 @@ public class UnitTestFace
|
||||
const int ToleranceAfterFactor = 600;
|
||||
Assert.IsTrue(DistanceDigits == 3);
|
||||
Assert.IsTrue(DistanceFactor == 1000);
|
||||
Assert.IsTrue(_Configuration.FaceDistanceTolerance == 0.6d);
|
||||
Assert.IsTrue(_Configuration.RangeDistanceTolerance[1] == 0.6d);
|
||||
Assert.IsTrue(ToleranceAfterFactor == 600);
|
||||
double valueA = 0.00001d;
|
||||
int checkA = (int)(Math.Round(valueA, _Configuration.LocationDigits) * _Configuration.LocationFactor);
|
||||
@ -150,7 +150,7 @@ public class UnitTestFace
|
||||
int checkB = (int)(Math.Round(valueB, _Configuration.LocationDigits) * _Configuration.LocationFactor);
|
||||
Assert.IsTrue(checkB == 100);
|
||||
Assert.IsTrue(checkB > checkA);
|
||||
int checkC = (int)(_Configuration.FaceDistanceTolerance * DistanceFactor);
|
||||
int checkC = (int)(_Configuration.RangeDistanceTolerance[1] * DistanceFactor);
|
||||
Assert.IsTrue(checkC == ToleranceAfterFactor);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user