Exemplo n.º 1
0
 public void WeaponCollection_Load_SaveAsCSV_LoadCSV_ValidCsv(int expectedValue)
 {
     outputPath = CombineToAppPath(OUTPUT_FILE_CSV);
     WeaponCollection.SaveAsCSV(outputPath);
     Assert.IsTrue(WeaponCollection.LoadCSV(outputPath));
     Assert.AreEqual(expectedValue, WeaponCollection.Count());
 }
Exemplo n.º 2
0
        public void WeaponCollection_SaveEmpty_Load_ValidCsv()
        {
            outputPath = CombineToAppPath(EMPTY_FILE_CSV);
            WeaponCollection empty = new WeaponCollection();

            empty.Clear();
            empty.SaveAsCSV(outputPath);
            empty.Load(outputPath);
            Assert.IsFalse(empty.Any());
        }