Exemple #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));
        }
Exemple #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));
 }