public void WeaponCollection_Load_SaveAsJSON_LoadJSON_ValidJson() { //- Load the data2.csv and SaveAsJSON() it to weapons.json //and call LoadJSON() on output and validate that there’s 95 entries inputPath = CombineToAppPath("weapons.json"); outputPath = CombineToAppPath("weapons.json"); Assert.IsTrue(weaponCollection.SaveAsJSON(outputPath)); Assert.IsTrue(weaponCollection.LoadJSON(inputPath)); Assert.IsTrue(weaponCollection.Count() == 95); }
public void WeaponCollection_Load_SaveAsJSON_LoadJSON_ValidJson() { Assert.IsTrue(weaponCollection.SaveAsJSON(outputPathJSON)); Assert.IsTrue(weaponCollection.LoadJSON(outputPathJSON)); Assert.AreEqual(weaponCollection.Count, 95); }