MockExpectGet Method (String, Object, Int32)

Typemock Isolator Developer Guide
Expect a number of gets of a Property and mock the Property's value

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.4.1.0 (9.4.1.0)
Syntax

public void ExpectGet(
	string property,
	Object value,
	int timesToRun
)

Parameters

property
Type: SystemString
Property Name
value
Type: SystemObject
Mocked value
timesToRun
Type: SystemInt32
Number of times to expect the gets

Implements

IMockControlExpectGet(String, Object, Int32)
Exceptions

ExceptionCondition
TypeMockExceptionIf property is not found or is not the correct type
See Also

Reference