예제 #1
0
 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);
 }
예제 #2
0
 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"));
 }
예제 #3
0
 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);
 }
예제 #4
0
 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));
 }