Click or drag to resize
weroSoft AG, Software
UnitTest Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Provides helper methods for easing Unit Testing.
Provides methods for accessing types and instances of types in other assemblies.
Provides some methods for accessing members of a type.
Inheritance Hierarchy
SystemObject
  WeroSoft.UnitTestingUnitTest

Namespace:  WeroSoft.UnitTesting
Assembly:  WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 3.22.8.1 (3.22.0814.1)
Syntax
C#
public static class UnitTest

The UnitTest type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberClassName
Gets the class name of the Unit Test responsible for the current code execution.
Public propertyStatic memberMethodName
Gets the method name of the Unit Test responsible for the current code execution.
Top
Methods
  NameDescription
Public methodStatic memberCreateGenericCollectionType
Creates a type representing a generic collection by its base type and its generic parameters.
Public methodStatic memberCreateGenericType
Creates a generic type based on the particular base elements.
Public methodStatic memberCreateInstance(Assembly, String, Object)
Creates an instance using a particular assembly.
Public methodStatic memberCreateInstanceT(Assembly, String, Object)
Creates an instance using a particular assembly.
Public methodStatic memberCreateMessage(String, Object)
Creates a message like it is performed by the method string.Format().
Public methodStatic memberCreateMessage(IFormatProvider, String, Object)
Creates a message like it is performed by the method string.Format().
Public methodStatic memberGetFieldValue(Object, String)
Gets the data object held by a defined field of a particular type.
Public methodStatic memberGetFieldValueT(Object, String)
Gets the data object held by a defined field of a particular type.
Public methodStatic memberGetFieldValueT(Type, String)
Gets the data object held by a defined field of a particular type.
Public methodStatic memberGetPropertyValue(Object, String)
Gets the data object held by a defined property of a particular type.
Public methodStatic memberGetPropertyValue(Type, String)
Gets the data object held by a defined static property of a particular type.
Public methodStatic memberGetPropertyValueT(Object, String)
Gets the data object held by a defined property of a particular type.
Public methodStatic memberGetPropertyValueT(Type, String)
Gets the data object held by a defined property of a particular type.
Public methodStatic memberGetTypeSmart
Gets a type defined by its full name or it's name from a defined assembly.
Public methodStatic memberInvoke(Object, String, Object)
Invokes a method on an object by reflection.
Public methodStatic memberInvoke(Type, String, Object)
Invokes a method on an object by reflection.
Public methodStatic memberInvokeTResult(Object, String, Object)
Invokes a method on an object by reflection.
Public methodStatic memberInvokeTResult(Type, String, Object)
Invokes a static method on a particular type.
Public methodStatic memberSetFieldValue(Object, String, Object)
Sets the data object on a defined field of a particular type.
Public methodStatic memberSetFieldValue(Type, String, Object)
Sets the data object on a defined field of a particular type.
Public methodStatic memberSetPropertyValue(Object, String, Object)
Sets the data object on a defined property of a particular type.
Public methodStatic memberSetPropertyValue(Type, String, Object)
Sets the data object on a defined property of a particular type.
Public methodStatic memberSetReadOnlyFieldValue(Object, String, Object)
Sets the data object on a defined field of a particular type.
Public methodStatic memberSetReadOnlyFieldValue(Type, String, Object)
Sets the data object on a defined read only field of a particular type.
Public methodStatic memberStartTestHost(String, String, String, Process)
Starts the test server.
Public methodStatic memberStartTestHost(String, String, String, String, Process, Int32)
Starts the test server.
Public methodStatic memberStopTestHost
Stops running the test host.
Top
Fields
  NameDescription
Public fieldStatic memberTestClassNotFound
Gets the string which is returned, if no class marked with the TestClassAttribute is found ().
Public fieldStatic memberTestMethodNotFound
Gets the string which is returned, if no method marked with the TestMethodAttribute is found ().
Top
See Also