Ejemplo n.º 1
0
    public void SetSchemaLocationTest()
    {
      string schemaLoc = "bla";
      MeiDocument testDoc = new MeiDocument(new Mei(new XAttribute("label","foo")));

      testDoc.SetSchemaLocation(schemaLoc);

      Assert.AreEqual(schemaLoc, testDoc.SchemaLocation);
    }
Ejemplo n.º 2
0
    public void SaveDocumentTest()
    {
      if(File.Exists("test.xml"))
      {
        File.Delete("test.xml");
      }

      MeiDocument testDoc = new MeiDocument(new Mei(new XAttribute("label", "foo")));
      testDoc.SetSchemaLocation("foobarfoobarfoo");

      testDoc.Save("test.xml");

      bool check = File.Exists("test.xml");

      Assert.IsTrue(check);
    }