Beispiel #1
0
        public void ShouldConstructWithCorrectTypeAndColors()
        {
            const BreathingType Type = BreathingType.Two;
            var first = Color.Red;
            var second = Color.Blue;

            var effect = new Breathing(Type, first, second);

            Assert.AreEqual(Type, effect.Type);
            Assert.AreEqual(first, effect.First);
            Assert.AreEqual(second, effect.Second);
        }
Beispiel #2
0
 /// <summary>
 /// Sets a <see cref="Breathing" /> effect on the keypad.
 /// </summary>
 /// <param name="effect">An instance of the <see cref="Breathing" /> struct.</param>
 public void SetBreathing(Breathing effect)
 {
     SetGuid(NativeWrapper.CreateKeypadEffect(effect));
 }
 public void Set(Breathing effect)
 {
     SetBreathing(effect);
 }