public virtual void Deserialize(XElement node) { var sX = node.Attribute("x")?.Value; var sY = node.Attribute("y")?.Value; var x = 0.0; var y = 0.0; double.TryParse(sX, out x); double.TryParse(sY, out y); SetPosition(x, y); var controllerNode = node.Element("controller"); if (controllerNode != null) { InnerController.Deserialize(controllerNode); } var optionsNode = node.Element("options"); if (optionsNode != null) { DeserializeOptions(optionsNode); } }
/// <inheritdoc/> public ITestCase Deserialize(string value) => InnerController.Deserialize(value);
/// <inheritdoc/> public ITestCase Deserialize(string value) { return(InnerController.Deserialize(value)); }