TestUtilitiesTestPropertyT Method (T, ExpressionFuncT, Object, Object, Object, Boolean) |
Asserts that the property passed across starts at a given value and can be 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,
bool testForEquals
)
Public Shared Sub TestProperty(Of T) (
obj As T,
propertyExpression As Expression(Of Func(Of T, Object)),
startValue As Object,
newValue As Object,
testForEquals As Boolean
)
public:
generic<typename T>
static void TestProperty(
T obj,
Expression<Func<T, Object^>^>^ propertyExpression,
Object^ startValue,
Object^ newValue,
bool testForEquals
)
static member TestProperty :
obj : 'T *
propertyExpression : Expression<Func<'T, Object>> *
startValue : Object *
newValue : Object *
testForEquals : bool -> unit
Parameters
- obj
- Type: T
- propertyExpression
- Type: System.Linq.ExpressionsExpressionFuncT, Object
- startValue
- Type: SystemObject
- newValue
- Type: SystemObject
- testForEquals
- Type: SystemBoolean
Type Parameters
- T
See Also