public void XMLTest()
        {
            var xmlOutput = new XML { Projects = scraper.Projects };
            var xml = xmlOutput.Generate();

            Assert.IsTrue(xml.Length > 8000);
            Assert.IsTrue(xml.RemoveAllWhiteSpace().StartsWith("<projects><project><name>"));
        }
Example #2
0
 public void Load(string testXML)
 {
     var xml = new XML();
     xml.Load(testXML);
     this.Projects = xml.Projects.ToList();
 }