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.FrameworkAssembly: 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
)
Public Shared Sub TestProperty (
obj As Object,
propertyName As String,
startValue As Object,
newValue As Object,
testForEquals As Boolean
)
public:
static void TestProperty(
Object^ obj,
String^ propertyName,
Object^ startValue,
Object^ newValue,
bool testForEquals
)
static member TestProperty :
obj : Object *
propertyName : string *
startValue : Object *
newValue : Object *
testForEquals : bool -> unit
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