From e98bb99ce54d2da4f7a7cd49c9540be2b54a32bc Mon Sep 17 00:00:00 2001 From: routersys Date: Sun, 11 Oct 2026 22:14:32 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E3=81=84=E5=9B=9E=E3=81=99=E9=85=8D?= =?UTF-8?q?=E5=88=97=E3=81=AE=E8=A9=A6=E9=A8=93=E3=82=92=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SpectrumColorShiftEffectTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() {