Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void RemoveAllAdjustments(AdjustableProperty type) => adjustments.RemoveAllAdjustments(type);