Beispiel #1
0
        public void TheClipWillGetAStateAndWeCanFindItAgain()
        {
            string        name = "MyClip";
            AnimationClip clip = new AnimationClip();

            animation.AddClip(clip, name);
            Assert.That(animation[name], Is.Not.Null);
            Assert.That(animation.GetClip(name), Is.Not.Null);
            Assert.That(animation.GetClip(name), Is.SameAs(clip));
            Assert.That(animation.GetClipCount(), Is.EqualTo(1));
        }
Beispiel #2
0
 public void CanBeSetWithTheClipProperty()
 {
     Assert.That(animation.clip, Is.Not.Null);
     Assert.That(animation.clip, Is.SameAs(clip));
     Assert.That(animation[name], Is.Not.Null);
     Assert.That(animation.GetClip(name), Is.Not.Null);
     Assert.That(animation.GetClip(name), Is.SameAs(clip));
     Assert.That(animation.GetClipCount(), Is.EqualTo(1));
 }