public void WeaponCollection_SaveEmpty_Load_ValidJson() { outputPath = CombineToAppPath("empty.json"); inputPath = CombineToAppPath("empty.json"); Assert.IsTrue(empty.SaveAsJson(outputPath)); Assert.IsTrue(weaponcollection.Load(inputPath)); Assert.IsTrue(weaponcollection.Count() == 0); }
public void WeaponCollection_Load_SaveAsJSON_Load_ValidJson() { outputPath = CombineToAppPath("weapons.json"); inputPath = CombineToAppPath("weapons.json"); Assert.IsTrue(weaponcollection.SaveAsJson(outputPath)); Assert.IsTrue(weaponcollection.Load(inputPath)); Assert.IsTrue(weaponcollection.Count() == 95); }