public void xmlSkillsTest() { Character expected = new Character(); // TODO: Initialize to an appropriate value XmlDocument creator = new XmlDocument(); // TODO: Initialize to an appropriate value expected.addSkill(new Skill("Skill", 20)); XmlNode node=expected.toXml(creator); Character actual = new Character(); actual.fromXml(node); Assert.AreEqual(expected.Skills.Count, actual.Skills.Count); }
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); }