TestUtilitiesTestPropertyT Method (T, ExpressionFuncT, Object, Object, Object) |
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<T>(
T obj,
Expression<Func<T, Object>> propertyExpression,
Object startValue,
Object newValue
)
Public Shared Sub TestProperty(Of T) (
obj As T,
propertyExpression As Expression(Of Func(Of T, Object)),
startValue As Object,
newValue As Object
)
public:
generic<typename T>
static void TestProperty(
T obj,
Expression<Func<T, Object^>^>^ propertyExpression,
Object^ startValue,
Object^ newValue
)
static member TestProperty :
obj : 'T *
propertyExpression : Expression<Func<'T, Object>> *
startValue : Object *
newValue : Object -> unit
Parameters
- obj
- Type: T
- propertyExpression
- Type: System.Linq.ExpressionsExpressionFuncT, Object
- startValue
- Type: SystemObject
- newValue
- Type: SystemObject
Type Parameters
- T
See Also