diff --git a/SpectrumColorShift.Tests/SpectrumColorShiftEffectTests.cs b/SpectrumColorShift.Tests/SpectrumColorShiftEffectTests.cs index b3f3a5c..8079e09 100644 --- a/SpectrumColorShift.Tests/SpectrumColorShiftEffectTests.cs +++ b/SpectrumColorShift.Tests/SpectrumColorShiftEffectTests.cs @@ -106,6 +106,18 @@ public sealed class SpectrumColorShiftEffectTests Assert.Empty(changed); } + [Fact] + public void TheAnimatablesAreCreatedOnlyOnce() + { + var effect = new SpectrumColorShiftEffect(); + var method = typeof(SpectrumColorShiftEffect).GetMethod("GetAnimatables", BindingFlags.Instance | BindingFlags.NonPublic)!; + + var first = method.Invoke(effect, null); + var second = method.Invoke(effect, null); + + Assert.Same(first, second); + } + [Fact] public void TheLabelIsTheLocalizedEffectName() {