documentation
.HELP!
Moq Documentation
SetupProperty Method
Moq
previous page
next page
Collapse All
Expand All
Members: Show All
Members: Filtered
Members: Filtered
Members: Filtered
C#
Include Protected Members
Include Inherited Members
Moq
Mock
<
(Of
<
(
<'
T
>
)
>
)
>
.
.
::
.
.
SetupProperty Method
Mock
<
(Of
<
(
<'
T
>
)
>
)
>
Class
See Also
Send Feedback
Overload List
Name
Description
SetupProperty
<
(Of
<
<'
(
TProperty
>
)
>
>
)
(Expression
<
(Of
<
<'
(
Func
<
(Of
<
(
<'
T, TResult
>
)
>
)
>
>
)
>
>
)
)
SetupProperty
<
(Of
<
<'
(
TProperty
>
)
>
>
)
(Expression
<
(Of
<
<'
(
Func
<
(Of
<
(
<'
T, TResult
>
)
>
)
>
>
)
>
>
)
, Boolean)
See Also
Mock
<
(Of
<
(
<'
T
>
)
>
)
>
Class
Mock
<
(Of
<
(
<'
T
>
)
>
)
>
Members
Moq Namespace
previous page
start
next page
Menu
Homepage
Table of contents
Moq Namespace
DefaultValue Enumeration
It Class
It Members
It Methods
Is(TValue) Method
IsAny(TValue) Method
IsInRange(TValue) Method
IsRegex Method
IsRegex Method (String)
IsRegex Method (String, RegexOptions)
Mock Class
Mock Members
Mock Constructor
Mock Methods
As(TInterface) Method
Get(T) Method
Of Method
Of(T) Method
Of(T) Method (Expression(Func))
OnGetObject Method
SetReturnsDefault(TReturn) Method
Verify Method
VerifyAll Method
Mock Properties
Behavior Property
CallBase Property
DefaultValue Property
Object Property
Mock(T) Class
Mock(T) Members
Mock(T) Constructor
Mock(T) Constructor
Mock(T) Constructor (Object[])
Mock(T) Constructor (MockBehavior)
Mock(T) Constructor (MockBehavior, Object[])
Mock(T) Methods
OnGetObject Method
Raise Method
Raise Method (Action(T), EventArgs)
Raise Method (Action(T), Object[])
Setup Method
Setup Method (Expression(Action(T)))
Setup(TResult) Method (Expression(Func))
SetupAllProperties Method
SetupGet(TProperty) Method
SetupProperty Method
SetupProperty(TProperty) Method (Expression(Func))
SetupProperty(TProperty) Method (Expression(Func), Boolean)
SetupSet Method
SetupSet(TProperty) Method (Action(T))
SetupSet Method (Action(T))
Verify Method
Verify Method (Expression(Action(T)))
Verify(TResult) Method (Expression(Func))
Verify Method (Expression(Action(T)), Times)
Verify Method (Expression(Action(T)), String)
Verify(TResult) Method (Expression(Func), Boolean)
Verify(TResult) Method (Expression(Func), Boolean)
Verify Method (Expression(Action(T)), Times, String)
Verify(TResult) Method (Expression(Func), Boolean, T)
VerifyGet Method
VerifyGet(TProperty) Method (Expression(Func))
VerifyGet(TProperty) Method (Expression(Func), Boolean)
VerifyGet(TProperty) Method (Expression(Func), Boolean)
VerifyGet(TProperty) Method (Expression(Func), Boolean, T)
VerifySet Method
VerifySet Method (Action(T))
VerifySet Method (Action(T), Times)
VerifySet Method (Action(T), String)
VerifySet Method (Action(T), Times, String)
When Method
Mock(T) Properties
Object Property
MockBehavior Enumeration
MockException Class
MockException Members
MockException Constructor
MockException Methods
GetObjectData Method
MockExtensions Class
MockExtensions Members
MockExtensions Methods
SetupSet(T, TProperty) Method
VerifySet Method
VerifySet(T, TProperty) Method (Mock(T), Expression(Func))
VerifySet(T, TProperty) Method (Mock(T), Expression(Func), Boolean)
VerifySet(T, TProperty) Method (Mock(T), Expression(Func), Boolean)
VerifySet(T, TProperty) Method (Mock(T), Expression(Func), Boolean, T)
MockFactory Class
MockFactory Members
MockFactory Constructor
MockFactory Methods
Create Method
Create(T) Method
Create(T) Method (Object[])
Create(T) Method (MockBehavior)
Create(T) Method (MockBehavior, Object[])
CreateMock(T) Method
Verify Method
VerifyAll Method
VerifyMocks Method
MockFactory Properties
CallBase Property
DefaultValue Property
Mocks Property
MockRepository Class
MockRepository Members
MockRepository Constructor
MockRepository Methods
Create Method
Of Method
Of(T) Method
Of(T) Method (Expression(Func))
OneOf Method
OneOf(T) Method
OneOf(T) Method (Expression(Func))
MockRepository Properties
Mocks Class
Mocks Members
Mocks Methods
Of Method
Of(T) Method
Of(T) Method (Expression(Func))
OneOf Method
OneOf(T) Method
OneOf(T) Method (Expression(Func))
MockSequence Class
MockSequence Members
MockSequence Constructor
MockSequence Properties
Cyclic Property
MockSequenceHelper Class
MockSequenceHelper Members
MockSequenceHelper Methods
InSequence(TMock) Method
Range Enumeration
SequenceExtensions Class
SequenceExtensions Members
SequenceExtensions Methods
SetupSequence(TMock, TResult) Method
Times Structure
Times Members
Times Methods
AtLeast Method
AtLeastOnce Method
AtMost Method
AtMostOnce Method
Between Method
Equals Method
Exactly Method
GetHashCode Method
Never Method
Once Method
Times Operators
Equality Operator
Inequality Operator
Moq.Language Namespace
ICallback Interface
ICallback Members
ICallback Methods
Callback Method
Callback Method (Action)
Callback(T) Method (Action(T))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16))
Callback(T1, T2) Method (Action)
Callback(T1, T2, T3) Method (Action)
Callback(T1, T2, T3, T4) Method (Action)
Callback(T1, T2, T3, T4, T5) Method (Action)
Callback(T1, T2, T3, T4, T5, T6) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7, T8) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9))
ICallback(TMock, TResult) Interface
ICallback(TMock, TResult) Members
ICallback(TMock, TResult) Methods
Callback Method
Callback Method (Action)
Callback(T) Method (Action(T))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15))
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16))
Callback(T1, T2) Method (Action)
Callback(T1, T2, T3) Method (Action)
Callback(T1, T2, T3, T4) Method (Action)
Callback(T1, T2, T3, T4, T5) Method (Action)
Callback(T1, T2, T3, T4, T5, T6) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7, T8) Method (Action)
Callback(T1, T2, T3, T4, T5, T6, T7, T8, T9) Method (Action(T1, T2, T3, T4, T5, T6, T7, T8, T9))
ICallbackGetter(TMock, TProperty) Interface
ICallbackGetter(TMock, TProperty) Members
ICallbackGetter(TMock, TProperty) Methods
Callback Method
ICallbackSetter(TProperty) Interface
ICallbackSetter(TProperty) Members
ICallbackSetter(TProperty) Methods
Callback Method
IRaise(T) Interface
IRaise(T) Members
IRaise(T) Methods
Raises Method
Raises Method (Action(T), EventArgs)
Raises Method (Action(T), Func)
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, EventArgs))
Raises(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) Method (Action(T), Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, EventArgs))
Raises(T1) Method (Action(T), Func)
Raises(T1, T2) Method (Action(T), Func)
Raises(T1, T2, T3) Method (Action(T), Func)
Raises(T1, T2, T3, T4) Method (Action(T), Func)
Raises(T1, T2, T3, T4, T5) Method (Action(T), Func)
Raises(T1, T2, T3, T4, T5, T6) Method (Action(T), Func)
Raises(T1, T2, T3, T4, T5, T6, T7) Method (Action(T), Func)
Raises(T1, T2, T3, T4, T5, T6, T7, T8) Method (Action(T), Func)
Raises Method (Action(T), Object[])
IReturns(TMock, TResult) Interface
IReturns(TMock, TResult) Members
IReturns(TMock, TResult) Methods
Returns Method
Returns Method (Func)
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult))
Returns(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) Method (Func(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult))
Returns(T) Method (Func)
Returns(T1, T2) Method (Func)
Returns(T1, T2, T3) Method (Func)
Returns(T1, T2, T3, T4) Method (Func)
Returns(T1, T2, T3, T4, T5) Method (Func)
Returns(T1, T2, T3, T4, T5, T6) Method (Func)
Returns(T1, T2, T3, T4, T5, T6, T7) Method (Func)
Returns(T1, T2, T3, T4, T5, T6, T7, T8) Method (Func)
Returns Method (TResult)
IReturnsGetter(TMock, TProperty) Interface
IReturnsGetter(TMock, TProperty) Members
IReturnsGetter(TMock, TProperty) Methods
Returns Method
Returns Method (Func)
Returns Method (TProperty)
ISetupConditionResult(T) Interface
ISetupConditionResult(T) Members
ISetupConditionResult(T) Methods
Setup Method
Setup Method (Expression(Action(T)))
Setup(TResult) Method (Expression(Func))
SetupGet(TProperty) Method
SetupSet Method
SetupSet Method (Action(T))
SetupSet(TProperty) Method (Action(T))
ISetupSequentialResult(TResult) Interface
ISetupSequentialResult(TResult) Members
ISetupSequentialResult(TResult) Methods
Returns Method
Throws Method
Throws(TException) Method
Throws Method (Exception)
IThrows Interface
IThrows Members
IThrows Methods
Throws Method
Throws(TException) Method
Throws Method (Exception)
IVerifies Interface
IVerifies Members
IVerifies Methods
Verifiable Method
Verifiable Method
Verifiable Method (String)
Moq.Protected Namespace
IProtectedMock(TMock) Interface
IProtectedMock(TMock) Members
IProtectedMock(TMock) Methods
Setup Method
Setup(TResult) Method (String, Object[])
Setup Method (String, Object[])
SetupGet(TProperty) Method
SetupSet(TProperty) Method
Verify Method
Verify(TResult) Method (String, Times, Object[])
Verify Method (String, Times, Object[])
VerifyGet(TProperty) Method
VerifySet(TProperty) Method
ItExpr Class
ItExpr Members
ItExpr Methods
Is(TValue) Method
IsAny(TValue) Method
IsInRange(TValue) Method
IsNull(TValue) Method
IsRegex Method
IsRegex Method (String)
IsRegex Method (String, RegexOptions)
ProtectedExtension Class
ProtectedExtension Members
ProtectedExtension Methods
Protected(T) Method
Get in touch
Submit feedback about this site to:
[email protected]