Пример #1
0
 public void WeaponCollection_Load_SaveAsXML_LoadXML_ValidXml()
 {
     outputPath = CombineToAppPath("weapons.csv");
     inputPath  = CombineToAppPath("weapons.csv");
     Assert.IsTrue(weaponcollection.SaveAsXML(outputPath));
     Assert.IsTrue(weaponcollection.LoadXML(inputPath));
 }
Пример #2
0
 public void WeaponCollection_Load_SaveAsXML_LoadXML_ValidXml()
 {
     // -Load the data2.csv and SaveAsXML() it to weapons.xml
     // and LoadXML() output and validate that there’s 95 entries
     inputPath  = CombineToAppPath("weapons.xml");
     outputPath = CombineToAppPath("weapons.xml");
     Assert.IsTrue(weaponCollection.SaveAsXML(outputPath));
     Assert.IsTrue(weaponCollection.LoadXML(inputPath));
 }
Пример #3
0
 public void WeaponCollection_Load_SaveAsXML_LoadXML_ValidXml()
 {
     Assert.IsTrue(weaponCollection.SaveAsXML(outputPathXML));
     Assert.IsTrue(weaponCollection.LoadXML(outputPathXML));
     Assert.AreEqual(weaponCollection.Count, 95);
 }