Exemplo n.º 1
0
        public void FindSource_over_vertices_element()
        {
            var parser = new SourceFinder(mMesh);

            var source = parser.FindSource("#Plane-Geometry-Vertex");

            Assert.IsNotNull(source);
            Assert.AreEqual("Plane-Geometry-Position", source.Attribute("id").Value);
        }
Exemplo n.º 2
0
        public void FindSource()
        {
            var parser = new SourceFinder(mMesh);

            var source = parser.FindSource("#Plane-Geometry-color");

            Assert.IsNotNull(source);
            Assert.AreEqual("Plane-Geometry-color", source.Attribute("id").Value);
        }
Exemplo n.º 3
0
        public void FindSource_for_not_existing_id()
        {
            var parser = new SourceFinder(mMesh);

            Assert.IsNull(parser.FindSource("#Not existing id"));
        }