public virtual void AssertInRange(double min, double max, int less_than_error_code, int larger_than_error_code, ITrackInRangeAssert <double> tracker = null) { if (tracker != null) { tracker.TrackInRangeAssert(this, min, max); } if (RuntimeConfiguration.Mode.HasFlag(RuntimeMode.SkipAssert)) { return; } if (value_ < min) { throw new TeflonDoubleAssertFailException(this, min, max, less_than_error_code); } if (value_ > max) { throw new TeflonDoubleAssertFailException(this, min, max, larger_than_error_code); } }
public virtual void AssertInRange(double min, double max, int error_code, ITrackInRangeAssert <double> tracker = null) { AssertInRange(min, max, error_code, error_code, tracker); }