Exemplo n.º 1
0
        public void Scene_Create_HasProperties()
        {
            // given:
            var         scene = new FbxScene("");
            FbxProperty prop;

            // then:
            Assert.AreEqual(2, CountProperties(scene));
            Assert.AreEqual(0, scene.GetSrcPropertyCount());
            Assert.AreEqual(0, scene.GetDstPropertyCount());

            prop = scene.FindProperty("SourceObject");
            Assert.NotNull(prop);
            Assert.True(prop.IsValid());
            Assert.NotNull(scene.Roots);
            Assert.True(scene.Roots.IsValid());
            Assert.AreEqual("SourceObject", scene.Roots.GetName());
            Assert.AreSame(prop, scene.Roots);

            prop = scene.FindProperty("ActiveAnimStackName");
            Assert.NotNull(prop);
            Assert.True(prop.IsValid());
            Assert.NotNull(scene.ActiveAnimStackName);
            Assert.True(scene.ActiveAnimStackName.IsValid());
            Assert.AreEqual("ActiveAnimStackName", scene.ActiveAnimStackName.GetName());
            Assert.AreSame(prop, scene.ActiveAnimStackName);
        }