Extensions - HervisDaubeny/HDUnitTesting GitHub Wiki

HDUnit.Extensions


Type HDUnit.Extensions.ErrorDictionaryExtension

Extension methods for 'ErrorDictionary' = <string, string[]>


Method HDUnit.Extensions.ErrorDictionaryExtension.Add(System.Collections.Generic.IDictionary{System.String,System.String[]},System.String,System.String)

Add new log in the error dictionary

Name Description
key: Key of new log
singleError: Value of new log

Type HDUnit.Extensions.ExceptionErrorDictionaryExtensions

Extension methods for 'ExceptionErrorDictionary' = <string, string[]>


Method HDUnit.Extensions.ExceptionErrorDictionaryExtensions.GetContents(System.Collections.Generic.IDictionary{System.String,System.String[]})

Get content of Error dictionary

Returns: String representing all errors from the dictionary.


Type HDUnit.Extensions.HDAttributesExtensions

Extension method for HDAttributes


Method HDUnit.Extensions.HDAttributesExtensions.GetParams(HDUnit.Attributes.HDParametersAttribute)

Get parameters of this attribute

Returns: Parameters in string array


Method HDUnit.Extensions.HDAttributesExtensions.GetParams(HDUnit.Attributes.HDGenericParametersAttribute)

Get parameters from this generic attribute

Returns: Parameters in string array


Method HDUnit.Extensions.HDAttributesExtensions.GetTypes(HDUnit.Attributes.HDGenericParametersAttribute)

Get types from this generic attribute

Returns: Types in string array


Type HDUnit.Extensions.MethodInfoExtensions

Extension method for MethodInfo


Method HDUnit.Extensions.MethodInfoExtensions.GetCustomName(System.Reflection.MethodInfo)

Get custom name of the test method or null.

Returns: Null or user given name of method


Method HDUnit.Extensions.MethodInfoExtensions.ContainsMethod(HDUnit.TestProcess,System.String)

Verify if this TestProcess contains given method.

Name Description
MethodName: Name of method to check
Returns: True if method is contained, False otherwise.

Method HDUnit.Extensions.MethodInfoExtensions.GetDependency(System.Reflection.MethodInfo)

Get name of the method this method has to be run after.

Returns: Null or name of the method


Type HDUnit.Extensions.StringExtensions

Extension methods for String.


Method HDUnit.Extensions.StringExtensions.RemoveNewLine(System.String)

Remove leading and trailing new line characters.

Returns: String without leading and trailing new line characters.


Method HDUnit.Extensions.StringExtensions.GetContent(System.String[])

Get string representation of content of this array.

Returns: string representation of array content


Type HDUnit.Extensions.TestProcessExtensions

Extension methods for TestProcess


Method HDUnit.Extensions.TestProcessExtensions.GetClassName(HDUnit.TestProcess)

Get name of the class from this TestProcess.

Returns: Name of the class


Method HDUnit.Extensions.TestProcessExtensions.GetResultContainersArray(System.Collections.Generic.IEnumerable{HDUnit.TestProcess})

Get array of TestResultContainer from this TestProcess.

Returns: Array of test results


Type HDUnit.Extensions.TestResultContainerExtensions

Extension methods of TestResultContainer.


Method HDUnit.Extensions.TestResultContainerExtensions.Concat(System.Collections.Generic.IEnumerable{HDUnit.TestResultContainer[]})

Concatenate collection of TestResultContainer[] to single array of TestResultContainer

Name Description
resultContainers: The collection of TestResultContainer[]
Returns: Array of TestResultContainer

Type HDUnit.Extensions.TypeColectionsExtensions

Extension methods of IEnumerable<Type> .


Method HDUnit.Extensions.TypeColectionsExtensions.Names(System.Collections.Generic.IEnumerable{System.Type})

Return names of all Types in the collection

Name Description
Classes: The collection to be examined
Returns: Array with names of all Types from collection

Method HDUnit.Extensions.TypeColectionsExtensions.Namespaces(System.Collections.Generic.IEnumerable{System.Type})

Return union of all Namespaces of given collection of Types

Name Description
Classes: The collection to be examined
Returns: Array with names of all Namespaces given Types have

Type HDUnit.Extensions.TypeExtensions

Extension methods for Type.


Method HDUnit.Extensions.TypeExtensions.CreateInstance(System.Type)

Return new instance of given Type as object.

Name Description
Class: Type of desired object
Returns: Instance of desired object
⚠️ **GitHub.com Fallback** ⚠️