C# Class MSTestAllureAdapter.XElementExtensions

Convenience methods for XElement
Mostrar archivo Open project: allure-framework/allure-mstest-adapter

Public Methods

Method 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 method

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.
return string

GetSafeAttributeValue() public static method

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.
return string

GetSafeValue() public static method

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.
return string