示例#1
0
 public void WeaponCollection_Load_Save_Load_ValidJson(int expectedValue)
 {
     outputPath = CombineToAppPath(OUTPUT_FILE_JSON);
     WeaponCollection.Save(outputPath);
     Assert.IsTrue(WeaponCollection.Load(outputPath));
     Assert.AreEqual(expectedValue, WeaponCollection.Count());
 }
示例#2
0
        public void WeaponCollection_LoadThatExistAndValid_True()
        {
            // TODO: load returns true, expect WeaponCollection with count of 95 .

            Assert.IsTrue(weaponCollection.Load(inputPath));
            Assert.AreEqual(weaponCollection.Count(), 95);
        }