Exemple #1
0
        public void ShouldConstructWithCorrectColorAndDuration()
        {
            var color = Color.Red;
            const Duration Duration = Duration.Medium;

            var effect = new Reactive(color, Duration);

            Assert.AreEqual(color, effect.Color);
            Assert.AreEqual(Duration, effect.Duration);
        }
Exemple #2
0
 /// <summary>
 /// Sets a <see cref="Reactive" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Reactive" /> struct.</param>
 public void SetReactive(Reactive effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
 public void Set(Reactive effect)
 {
     SetReactive(effect);
 }