예제 #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);
 }