public override ICollection<BaseTestData> ExtractData(XElement xmlNode, ICollection<DataProperty> properties) { var result = new Collection<BaseTestData>(); var allowedAttributeNames = new Collection<string> { "key" }; foreach (var node in xmlNode.Descendants().Where(x => string.Equals(x.Name.LocalName, this.ElementName, StringComparison.InvariantCultureIgnoreCase))) { CheckForAdditionalAttributes(node, allowedAttributeNames); var data = new RegistryKeyData { Key = DataPropertyTool.ResolvePropertiesInString(properties, XmlTools.GetNamedAttributeValue(node, "key", string.Empty)) }; AddCommonData(node, data, properties); result.Add(data); } return result; }
private bool Equals(RegistryKeyData other) { return string.Equals(Key, other.Key); }