TestUtilitiesTestPropertyT Method (T, ExpressionFuncT, Object, Boolean) |
Asserts that a bool property of an object has the given start value. Sets the property to the toggled start value and asserts that
the toggled value can then be read back from the property.
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,
bool startValue
)
Public Shared Sub TestProperty(Of T) (
obj As T,
propertyExpression As Expression(Of Func(Of T, Object)),
startValue As Boolean
)
public:
generic<typename T>
static void TestProperty(
T obj,
Expression<Func<T, Object^>^>^ propertyExpression,
bool startValue
)
static member TestProperty :
obj : 'T *
propertyExpression : Expression<Func<'T, Object>> *
startValue : bool -> unit
Parameters
- obj
- Type: T
- propertyExpression
- Type: System.Linq.ExpressionsExpressionFuncT, Object
- startValue
- Type: SystemBoolean
Type Parameters
- T
See Also