void Deserialize(XElement node) { if (!node.Name.LocalName.Equals("TestCase")) { throw new ServerErrorException(); } Path = TestPath.Read(node.Element("TestPath")); HasParameters = bool.Parse(node.Attribute("HasParameters").Value); HasChildren = bool.Parse(node.Attribute("HasChildren").Value); }