Click or drag to resize
TestUtilitiesTestProperty Method (Object, String, Object, Object, Boolean)
Asserts that a property of an object has a given start value and can be successfuly changed to another value.

Namespace: Test.Framework
Assembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void TestProperty(
	Object obj,
	string propertyName,
	Object startValue,
	Object newValue,
	bool testForEquals
)

Parameters

obj
Type: SystemObject
The object under test.
propertyName
Type: SystemString
The name of the property to test.
startValue
Type: SystemObject
The expected starting value of the property.
newValue
Type: SystemObject
The value to write to the property - to pass the property must expose this value once it has been set.
testForEquals
Type: SystemBoolean
True if the equality test uses Equals(Object), false if it uses ReferenceEquals(Object, Object). If either the startValue or newValue are value types then this parameter is ignored, the test is always made using Equals(Object).
See Also