// Constructor with parameters. public ToleranceSetting(double low, double high, double tolerance, Test.ToleranceType type) { Low = low; High = high; Tolerance = tolerance; Type = type; }
// Constructor with a single tolerance. public RangeSetting(string label, double low, double high, double tolerance, Test.ToleranceType type) { Label = label; Low = low; High = high; // For a range with a single tolerance, the tolerance will always have the same high and low // values as the range itself. ToleranceSettings = new List <ToleranceSetting> { new ToleranceSetting(low, high, tolerance, type) }; }