public void TestRemoveAllAdjustmentsPreservesInternalBinding() { var adjustments = new AudioAdjustments(); adjustments.RemoveAllAdjustments(AdjustableProperty.Volume); adjustments.Volume.Value = 0.5; Assert.AreEqual(0.5, adjustments.GetAggregate(AdjustableProperty.Volume).Value); }
public void TestRemoveAllAdjustmentsRemovesExternalBindings([Values] AdjustableProperty type) { var adjustments = new AudioAdjustments(); Assert.IsTrue(adjustments.GetAggregate(type).IsDefault); adjustments.AddAdjustment(type, new BindableDouble(0.5)); adjustments.AddAdjustment(type, new BindableDouble(0.5)); adjustments.RemoveAllAdjustments(type); Assert.IsTrue(adjustments.GetAggregate(type).IsDefault); }
public void RemoveAllAdjustments(AdjustableProperty type) => adjustments.RemoveAllAdjustments(type);