public void TestSetCurrentAnimStack() { using (FbxScene newScene = FbxScene.Create(Manager, "")) { FbxAnimStack animStack = FbxAnimStack.Create(Manager, ""); newScene.SetCurrentAnimationStack(animStack); Assert.AreEqual(animStack, newScene.GetCurrentAnimationStack()); // test null Assert.That(() => { newScene.SetCurrentAnimationStack(null); }, Throws.Exception.TypeOf <System.ArgumentNullException>()); // test invalid animStack.Destroy(); Assert.That(() => { newScene.SetCurrentAnimationStack(animStack); }, Throws.Exception.TypeOf <System.ArgumentNullException>()); } }