public void test_RDFAnnotation_C_delete()
        {
            SBase   obj  = m.getCompartment(0);
            XMLNode node = RDFAnnotationParser.parseCVTerms(obj);
            XMLNode n1   = RDFAnnotationParser.deleteRDFAnnotation(node);

            assertTrue(n1.getNumChildren() == 0);
            assertTrue(("annotation" == n1.getName()));
            node = null;
        }
 public void test_RDFAnnotation_delete()
 {
   XMLNode node = RDFAnnotationParser.parseCVTerms(m.getCompartment(0));
   XMLNode n1 = RDFAnnotationParser.deleteRDFAnnotation(node);
   string expected =  "<annotation/>";
   assertTrue( n1.getNumChildren() == 0 );
   assertTrue( n1.getName() ==  "annotation" );
   assertEquals( true, equals(expected,n1.toXMLString()) );
   node = null;
 }
        public void test_L3ModelHistory_delete_Model()
        {
            XMLNode node     = RDFAnnotationParser.parseModelHistory(m);
            XMLNode n1       = RDFAnnotationParser.deleteRDFAnnotation(node);
            string  expected = "<annotation/>";

            assertTrue(n1.getNumChildren() == 0);
            assertTrue(n1.getName() == "annotation");
            assertEquals(true, equals(expected, n1.toXMLString()));
            node = null;
        }
 public void test_RDFAnnotation_deleteWithOther()
 {
   Compartment c = m.getCompartment(1);
   XMLNode node = RDFAnnotationParser.deleteRDFAnnotation(c.getAnnotation());
   string expected = "<annotation>\n" + "  <jd2:JDesignerLayout version=\"2.0\" MajorVersion=\"2\" MinorVersion=\"0\" BuildVersion=\"41\">\n" + 
 "    <jd2:header>\n" + 
 "      <jd2:VersionHeader JDesignerVersion=\"2.0\"/>\n" + 
 "      <jd2:ModelHeader Author=\"Mr Untitled\" ModelVersion=\"0.0\" ModelTitle=\"untitled\"/>\n" + 
 "      <jd2:TimeCourseDetails timeStart=\"0\" timeEnd=\"10\" numberOfPoints=\"1000\"/>\n" + 
 "    </jd2:header>\n" + 
 "  </jd2:JDesignerLayout>\n" + 
 "</annotation>";
   assertEquals( true, equals(expected,node.toXMLString()) );
 }