public void xmlAttributesTest() { Character expected = new Character(); // TODO: Initialize to an appropriate value XmlDocument creator = new XmlDocument(); // TODO: Initialize to an appropriate value expected.addAttribute(new CharacterSystemLibrary.Classes.Attribute("Attribute")); XmlNode node = expected.toXml(creator); Character actual = new Character(); actual.fromXml(node); Assert.AreEqual(expected.Attributes.Count, actual.Attributes.Count); }
public void xmlStatsTest() { Character expected = new Character(); // TODO: Initialize to an appropriate value XmlDocument creator = new XmlDocument(); // TODO: Initialize to an appropriate value expected.addStat(new Stat("Stat", 20)); XmlNode node = expected.toXml(creator); Character actual = new Character(); actual.fromXml(node); Assert.AreEqual(expected.Stats.Count, actual.Stats.Count); }