public void WeaponCollection_Load_SaveJSON_LoadXML_InvalidXml() { outputPath = CombineToAppPath(OUTPUT_FILE_JSON); WeaponCollection.SaveAsJSON(outputPath); Assert.IsFalse(WeaponCollection.LoadXML(outputPath)); Assert.IsFalse(WeaponCollection.Any()); }
public void WeaponCollection_SaveEmpty_Load_ValidXml() { outputPath = CombineToAppPath(EMPTY_FILE_XML); WeaponCollection empty = new WeaponCollection(); empty.Clear(); empty.SaveAsXML(outputPath); empty.Load(outputPath); Assert.IsFalse(empty.Any()); }