コード例 #1
0
 public void WeaponCollection_Load_SaveAsCSV_LoadCSV_ValidCsv()
 {
     outputPath = CombineToAppPath("weapons.csv");
     inputPath  = CombineToAppPath("weapons.csv");
     Assert.IsTrue(weaponcollection.SaveAsCSV(outputPath));
     Assert.IsTrue(weaponcollection.LoadCSV(inputPath));
 }
コード例 #2
0
 public void WeaponCollection_Load_SaveAsCSV_LoadCSV_ValidCsv()
 {
     // - Load the data2.csv and SaveAsCSV() it to weapons.csv
     // and LoadCsv() output and validate that there’s 95 entries
     inputPath  = CombineToAppPath("weapons.csv");
     outputPath = CombineToAppPath("weapons.csv");
     Assert.IsTrue(weaponCollection.SaveAsCSV(outputPath));
     Assert.IsTrue(weaponCollection.LoadCSV(inputPath));
 }
コード例 #3
0
 public void WeaponCollection_Load_SaveAsCSV_LoadCSV_ValidCsv()
 {
     Assert.IsTrue(weaponCollection.SaveAsCSV(outputPathCSV));
     Assert.IsTrue(weaponCollection.LoadCSV(outputPathCSV));
     Assert.AreEqual(weaponCollection.Count, 95);
 }