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

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 Object GetFieldValue(
	this Object targetObject,
	string fieldName
)

Parameters

targetObject
Type: SystemObject
Object on which the fields data shall be get from.
fieldName
Type: SystemString
Name of the field whose data shall be get from.

Return Value

Type: Object
Content of the particular field.

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.
See Also