public void TestSceneGraphSetAttributes()
        {
            SceneGraphNode element;
            string         value;

            element = new X3D.X3D();
            element.setAttribute("profile", "Interactive");
            value = (string)element.getAttribute("profile");

            Assert.AreEqual(value, "Interactive");
            Assert.AreEqual(((X3D.X3D)element).profile, "Interactive");
        }
        public SceneGraphNode CreateTestDOM()
        {
            SceneGraphNode document,
                           scene,
                           shape,
                           sphere;

            document = new X3D.X3D();
            scene    = new X3D.Scene();
            shape    = new X3D.Shape();
            sphere   = new X3D.Sphere();

            shape.Children.Add(sphere);
            scene.Children.Add(shape);
            document.Children.Add(scene);

            scene.Parent  = document;
            shape.Parent  = scene;
            sphere.Parent = shape;

            return(document);
        }