123456789101112131415161718192021222324252627282930313233343536 |
-
- using NUnit.Framework;
- using System.Collections;
- using Autodesk.Fbx;
- namespace Autodesk.Fbx.UnitTests
- {
- public class FbxAnimStackTest : Base<FbxAnimStack>
- {
- [Test]
- public void TestBasics(){
- using (var animStack = CreateObject ("anim stack")) {
- FbxCollectionTest.GenericTests (animStack, Manager);
-
- animStack.Description.Set ("this is an anim stack");
- Assert.AreEqual ("this is an anim stack", animStack.Description.Get ());
-
- animStack.SetLocalTimeSpan(new FbxTimeSpan());
-
- FbxTimeSpan timeSpan = animStack.GetLocalTimeSpan();
- Assert.IsInstanceOf<FbxTimeSpan> (timeSpan);
-
- Assert.That (() => { animStack.SetLocalTimeSpan(null); }, Throws.Exception.TypeOf<System.ArgumentNullException>());
- }
- }
- }
- }
|