Click or drag to resize
weroSoft AG, Software
UnitTestSetFieldValue Method (Object, String, Object)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Sets the data object on a defined field of a particular type.

Namespace:  WeroSoft.UnitTesting
Assembly:  WeroSoft.UnitTesting.Library (in WeroSoft.UnitTesting.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public static void SetFieldValue(
	this Object targetObject,
	string fieldName,
	Object data
)

Parameters

targetObject
Type: SystemObject
Object on which the field shall be set.
fieldName
Type: SystemString
Name of the field to be set.
data
Type: SystemObject
Data object which shall be set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
UnitTestAssertionFailedExceptionIf the field is not existing, is literal or is read only.
See Also