public void WeaponCollection_Load_Save_Load_ValidJson() { // - Load the data2.csv and Save() it to weapons.json // and call Load() output and validate that there’s 95 entries inputPath = CombineToAppPath("weapons.json"); outputPath = CombineToAppPath("weapons.json"); Assert.IsTrue(weaponCollection.Save(outputPath)); Assert.IsTrue(weaponCollection.Load(inputPath)); Assert.IsTrue(weaponCollection.Count() == 95); }
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); }
public void WeaponCollection_Load_Save_Load_ValidJson() { outputPath = CombineToAppPath("weapons.json"); inputPath = CombineToAppPath("weapons.json"); Assert.IsTrue(weaponcollection.Save(outputPath)); Assert.IsTrue(weaponcollection.Load(inputPath)); Assert.IsTrue(weaponcollection.Count() == 95); }