Click or drag to resize
weroSoft AG, Software
UnitTest Klasse
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.
Vererbungshierarchie
SystemObject
  WeroSoft.UnitTestingUnitTest

Namensraum:  WeroSoft.UnitTesting
Assembly:  WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 2.21.10.1 (2.22.0109.1)
Syntax
C#
public static class UnitTest

Der UnitTest Typ exponiert die folgenden Member.

Eigenschaften
  NameBeschreibung
Public EigenschaftStatic MemberClassName
Gets the class name of the Unit Test responsible for the current code execution.
Public EigenschaftStatic MemberMethodName
Gets the method name of the Unit Test responsible for the current code execution.
Zurück nach oben
Methoden
  NameBeschreibung
Public MethodeStatic MemberCreateGenericCollectionType
Creates a type representing a generic collection by its base type and its generic parameters.
Public MethodeStatic MemberCreateGenericType
Creates a generic type based on the particular base elements.
Public MethodeStatic MemberCreateInstance(Assembly, String, Object)
Creates an instance using a particular assembly.
Public MethodeStatic MemberCreateInstanceT(Assembly, String, Object)
Creates an instance using a particular assembly.
Public MethodeStatic MemberCreateMessage(String, Object)
Creates a message like it is performed by the method string.Format().
Public MethodeStatic MemberCreateMessage(IFormatProvider, String, Object)
Creates a message like it is performed by the method string.Format().
Public MethodeStatic MemberGetFieldValue(Object, String)
Gets the data object held by a defined field of a particular type.
Public MethodeStatic MemberGetFieldValueT(Object, String)
Gets the data object held by a defined field of a particular type.
Public MethodeStatic MemberGetFieldValueT(Type, String)
Gets the data object held by a defined field of a particular type.
Public MethodeStatic MemberGetPropertyValue(Object, String)
Gets the data object held by a defined property of a particular type.
Public MethodeStatic MemberGetPropertyValue(Type, String)
Gets the data object held by a defined static property of a particular type.
Public MethodeStatic MemberGetPropertyValueT(Object, String)
Gets the data object held by a defined property of a particular type.
Public MethodeStatic MemberGetPropertyValueT(Type, String)
Gets the data object held by a defined property of a particular type.
Public MethodeStatic MemberGetTypeSmart
Gets a type defined by its full name or it's name from a defined assembly.
Public MethodeStatic MemberInvoke(Object, String, Object)
Invokes a method on an object by reflection.
Public MethodeStatic MemberInvoke(Type, String, Object)
Invokes a method on an object by reflection.
Public MethodeStatic MemberInvokeTResult(Object, String, Object)
Invokes a method on an object by reflection.
Public MethodeStatic MemberInvokeTResult(Type, String, Object)
Invokes a static method on a particular type.
Public MethodeStatic MemberSetFieldValue(Object, String, Object)
Sets the data object on a defined field of a particular type.
Public MethodeStatic MemberSetFieldValue(Type, String, Object)
Sets the data object on a defined field of a particular type.
Public MethodeStatic MemberSetPropertyValue(Object, String, Object)
Sets the data object on a defined property of a particular type.
Public MethodeStatic MemberSetPropertyValue(Type, String, Object)
Sets the data object on a defined property of a particular type.
Public MethodeStatic MemberSetReadOnlyFieldValue(Object, String, Object)
Sets the data object on a defined field of a particular type.
Public MethodeStatic MemberSetReadOnlyFieldValue(Type, String, Object)
Sets the data object on a defined read only field of a particular type.
Public MethodeStatic MemberStartTestHost(String, String, String, Process)
Starts the test server.
Public MethodeStatic MemberStartTestHost(String, String, String, String, Process, Int32)
Starts the test server.
Public MethodeStatic MemberStopTestHost
Stops running the test host.
Zurück nach oben
Felder
  NameBeschreibung
Public FeldStatic MemberTestClassNotFound
Gets the string which is returned, if no class marked with the TestClassAttribute is found ().
Public FeldStatic MemberTestMethodNotFound
Gets the string which is returned, if no method marked with the TestMethodAttribute is found ().
Zurück nach oben
Siehe auch