Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 private BeatDivisorPresetCollection(BeatDivisorType type, IEnumerable <int> presets)
 {
     Type    = type;
     Presets = presets.ToArray();
 }