Extensions - HervisDaubeny/HDUnitTesting GitHub Wiki
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 |
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.
Extension method for HDAttributes
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
Extension method for MethodInfo
Get custom name of the test method or null.
Returns: Null or user given name of method
Verify if this TestProcess contains given method.
| Name | Description |
|---|---|
| MethodName: | Name of method to check |
| Returns: True if method is contained, False otherwise. |
Get name of the method this method has to be run after.
Returns: Null or name of the method
Extension methods for String.
Remove leading and trailing new line characters.
Returns: String without leading and trailing new line characters.
Get string representation of content of this array.
Returns: string representation of array content
Extension methods for 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
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
|
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 |
Extension methods for Type.
Return new instance of given Type as object.
| Name | Description |
|---|---|
| Class: | Type of desired object |
| Returns: Instance of desired object |