private void assertPreset(BeatDivisorType type, int?maxDivisor = null) { AddAssert($"preset is {type}", () => bindableBeatDivisor.ValidDivisors.Value.Type == type); if (type == BeatDivisorType.Custom) { Debug.Assert(maxDivisor != null); AddAssert($"max divisor is {maxDivisor}", () => bindableBeatDivisor.ValidDivisors.Value.Presets.Max() == maxDivisor.Value); } }
private BeatDivisorPresetCollection(BeatDivisorType type, IEnumerable <int> presets) { Type = type; Presets = presets.ToArray(); }