C# Class MSTestAllureAdapter.XElementExtensions

Convenience methods for XElement
Afficher le fichier Open project: allure-framework/allure-mstest-adapter

Méthodes publiques

Méthode Description
GetSafeAttributeValue ( this element, System.Xml.Linq.XName attributeName ) : string

Gets the attribute value with the given attributeName.

GetSafeAttributeValue ( this element, System.Xml.Linq.XName descendantElement, System.Xml.Linq.XName attributeName ) : string

Gets the attribute value with the given attributeName of the element with the given descendantElement name.

GetSafeValue ( this element, System.Xml.Linq.XName name ) : string

Gets the value of the element with the given name.

Method Details

GetSafeAttributeValue() public static méthode

Gets the attribute value with the given attributeName.
public static GetSafeAttributeValue ( this element, System.Xml.Linq.XName attributeName ) : string
element this Element.
attributeName System.Xml.Linq.XName Attribute name.
Résultat string

GetSafeAttributeValue() public static méthode

Gets the attribute value with the given attributeName of the element with the given descendantElement name.
public static GetSafeAttributeValue ( this element, System.Xml.Linq.XName descendantElement, System.Xml.Linq.XName attributeName ) : string
element this Element.
descendantElement System.Xml.Linq.XName Descendant element.
attributeName System.Xml.Linq.XName Attribute name.
Résultat string

GetSafeValue() public static méthode

Gets the value of the element with the given name.
public static GetSafeValue ( this element, System.Xml.Linq.XName name ) : string
element this Element.
name System.Xml.Linq.XName Name.
Résultat string