public void ConnectionsTest()
 {
     InitializeXML();
     Connection();
     ReadXml test = new ReadXml(xml.ToString(), new ImportInWord());
     test.OpenXml();
     test.XML();
     Assert.IsTrue(test.ListOfConnections.Count(s => s.Id == "test") == 1);
 }
 public void FormatTest()
 {
     InitializeXML();
     AddElement();
     ImportInWord doc = new ImportInWord();
     Format();
     ReadXml test = new ReadXml(xml.ToString(), doc);
     test.OpenXml();
     test.XML();
     doc.Exit();
     Assert.IsTrue(File.Exists(@"C:\Users\gpiano\Documents\test\integrationstest.docx"));
 }
 public void VariablesTest()
 {
     InitializeXML();
     AddElement();
     Variables();
     ImportInWord doc = new ImportInWord();
     ReadXml test = new ReadXml(xml.ToString(), doc);
     test.OpenXml();
     test.XML();
     doc.Exit();
     Assert.IsTrue(test.ListOfVariables.Count(s => s.Name == "test") == 1);
 }
 public void MatheTest()
 {
     InitializeXML();
     AddElement();
     Mathe();
     ImportInWord doc = new ImportInWord();
     ReadXml test = new ReadXml(xml.ToString(), doc);
     test.OpenXml();
     test.XML();
     doc.Exit();
     Assert.IsTrue(test.ListOfVariables.Exists(s => s.Number == 9));
 }