public void TestDocumentInfo()
        {
            using (var doc = CreateObject("RootDoc"))
            {
                // NOTE: we'll get a ArgumentNullException warning if we use the using
                // scope because doc.Clear() will destroy the FbxDocumentInfo.
                var docInfo = FbxDocumentInfo.Create(this.Manager, "myDocumentInfo");
                Assert.IsNotNull(docInfo);

                doc.SetDocumentInfo(FbxDocumentInfoTest.InitDocumentInfo(docInfo, this.dataValues));

                var docInfo2 = doc.GetDocumentInfo();
                Assert.IsNotNull(docInfo2);

                FbxDocumentInfoTest.CheckDocumentInfo(docInfo2, this.dataValues);

                // TODO: test identity
                // Assert.AreEqual (docInfo2, docInfo);
                // Assert.AreSame (docInfo2, docInfo);

                Assert.That(() => { doc.SetDocumentInfo(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());

                // CRASH ALERT!!! remove reference to document info before
                // going out of using docInfo scope.
                doc.Clear();

                Assert.IsNull(doc.GetDocumentInfo());

                FbxCollectionTest.GenericTests(doc, Manager);
            }
        }
        public void TestBasics()
        {
            using (var animStack = CreateObject("anim stack")) {
                FbxCollectionTest.GenericTests(animStack, Manager);

                // test description
                animStack.Description.Set("this is an anim stack");
                Assert.AreEqual("this is an anim stack", animStack.Description.Get());

                // test SetLocalTimeSpan (make sure it doesn't crash)
                animStack.SetLocalTimeSpan(new FbxTimeSpan());

                // test GetLocalTimeSpan
                FbxTimeSpan timeSpan = animStack.GetLocalTimeSpan();
                Assert.IsInstanceOf <FbxTimeSpan> (timeSpan);

                // test SetLocalTimeSpan with null
                Assert.That(() => { animStack.SetLocalTimeSpan(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>());
            }
        }
        public void TestBasics()
        {
            using (var scene = FbxScene.Create(Manager, "scene")) {
                // Just call every function. TODO: and test them at least minimally!
                scene.GetGlobalSettings();
                scene.GetRootNode();

                var docInfo = FbxDocumentInfo.Create(Manager, "info");
                scene.SetDocumentInfo(docInfo);
                Assert.AreEqual(docInfo, scene.GetDocumentInfo());

                docInfo = FbxDocumentInfo.Create(Manager, "info2");
                scene.SetSceneInfo(docInfo);
                Assert.AreEqual(docInfo, scene.GetSceneInfo());

                scene.Clear();

                FbxCollectionTest.GenericTests(scene, Manager);
            }
        }
 public void TestBasics()
 {
     FbxCollectionTest.GenericTests(CreateObject("anim layer"), Manager);
 }