annotate SilverlightValidation/Libs/Moq.Silverlight.xml @ 120:48c389520e5d

initial commit
author stevenh7776
date Thu, 31 May 2012 14:12:43 +0100
parents 572886951353
children
rev   line source
107
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1 <?xml version="1.0"?>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2 <doc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3 <assembly>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4 <name>Moq.Silverlight</name>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5 </assembly>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
6 <members>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
7 <member name="T:ThisAssembly">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
8 <group name="overview" title="Overview" order="0" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
9 <group name="setups" title="Specifying setups" order="1" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
10 <group name="returns" title="Returning values from members" order="2" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
11 <group name="verification" title="Verifying setups" order="3" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
12 <group name="advanced" title="Advanced scenarios" order="99" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
13 <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
14 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
15 <member name="T:Moq.MockBehavior">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
16 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
17 Options to customize the behavior of the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
18 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
19 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
20 <member name="F:Moq.MockBehavior.Strict">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
21 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
22 Causes the mock to always throw
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
23 an exception for invocations that don't have a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
24 corresponding setup.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
25 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
26 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
27 <member name="F:Moq.MockBehavior.Loose">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
28 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
29 Will never throw exceptions, returning default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
30 values when necessary (null for reference types,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
31 zero for value types or empty enumerables and arrays).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
32 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
33 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
34 <member name="F:Moq.MockBehavior.Default">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
35 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
36 Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
37 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
38 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
39 <member name="T:Moq.Mock`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
40 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
41 Provides a mock implementation of <typeparamref name="T"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
42 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
43 Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
44 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
45 The behavior of the mock with regards to the setups and the actual calls is determined
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
46 by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
47 constructor.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
48 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
49 </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
50 The following example shows establishing setups with specific values
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
51 for method invocations:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
52 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
53 // Arrange
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
54 var order = new Order(TALISKER, 50);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
55 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
56
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
57 mock.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
58
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
59 // Act
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
60 order.Fill(mock.Object);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
61
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
62 // Assert
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
63 Assert.True(order.IsFilled);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
64 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
65 The following example shows how to use the <see cref="T:Moq.It"/> class
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
66 to specify conditions for arguments instead of specific values:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
67 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
68 // Arrange
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
69 var order = new Order(TALISKER, 50);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
70 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
71
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
72 // shows how to expect a value within a range
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
73 mock.Setup(x =&gt; x.HasInventory(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
74 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
75 It.IsInRange(0, 100, Range.Inclusive)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
76 .Returns(false);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
77
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
78 // shows how to throw for unexpected calls.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
79 mock.Setup(x =&gt; x.Remove(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
80 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
81 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
82 .Throws(new InvalidOperationException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
83
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
84 // Act
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
85 order.Fill(mock.Object);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
86
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
87 // Assert
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
88 Assert.False(order.IsFilled);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
89 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
90 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
91 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
92 <member name="T:Moq.Mock">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
93 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
94 Base class for mocks and static helper class with methods that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
95 apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
96 retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
97 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
98 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
99 <member name="T:Moq.IHideObjectMembers">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
100 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
101 Helper interface used to hide the base <see cref="T:System.Object"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
102 members from the fluent API to make it much cleaner
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
103 in Visual Studio intellisense.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
104 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
105 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
106 <member name="M:Moq.IHideObjectMembers.GetType">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
107 <summary/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
108 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
109 <member name="M:Moq.IHideObjectMembers.GetHashCode">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
110 <summary/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
111 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
112 <member name="M:Moq.IHideObjectMembers.ToString">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
113 <summary/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
114 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
115 <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
116 <summary/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
117 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
118 <member name="M:Moq.Mock.#ctor">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
119 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
120 Initializes a new instance of the <see cref="T:Moq.Mock"/> class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
121 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
122 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
123 <member name="M:Moq.Mock.Get``1(``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
124 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
125 Retrieves the mock object for the given object instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
126 </summary><typeparam name="T">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
127 Type of the mock to retrieve. Can be omitted as it's inferred
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
128 from the object instance passed in as the <paramref name="mocked"/> instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
129 </typeparam><param name="mocked">The instance of the mocked object.</param><returns>The mock associated with the mocked object.</returns><exception cref="T:System.ArgumentException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
130 The received <paramref name="mocked"/> instance
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
131 was not created by Moq.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
132 </exception><example group="advanced">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
133 The following example shows how to add a new setup to an object
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
134 instance which is not the original <see cref="T:Moq.Mock`1"/> but rather
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
135 the object associated with it:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
136 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
137 // Typed instance, not the mock, is retrieved from some test API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
138 HttpContextBase context = GetMockContext();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
139
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
140 // context.Request is the typed object from the "real" API
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
141 // so in order to add a setup to it, we need to get
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
142 // the mock that "owns" it
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
143 Mock&lt;HttpRequestBase&gt; request = Mock.Get(context.Request);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
144 mock.Setup(req =&gt; req.AppRelativeCurrentExecutionFilePath)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
145 .Returns(tempUrl);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
146 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
147 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
148 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
149 <member name="M:Moq.Mock.OnGetObject">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
150 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
151 Returns the mocked object value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
152 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
153 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
154 <member name="M:Moq.Mock.Verify">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
155 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
156 Verifies that all verifiable expectations have been met.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
157 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
158 This example sets up an expectation and marks it as verifiable. After
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
159 the mock is used, a <c>Verify()</c> call is issued on the mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
160 to ensure the method in the setup was invoked:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
161 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
162 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
163 this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
164 ...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
165 // other test code
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
166 ...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
167 // Will throw if the test code has didn't call HasInventory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
168 this.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
169 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
170 </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
171 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
172 <member name="M:Moq.Mock.VerifyAll">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
173 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
174 Verifies all expectations regardless of whether they have
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
175 been flagged as verifiable.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
176 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
177 This example sets up an expectation without marking it as verifiable. After
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
178 the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
179 to ensure that all expectations are met:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
180 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
181 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
182 this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
183 ...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
184 // other test code
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
185 ...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
186 // Will throw if the test code has didn't call HasInventory, even
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
187 // that expectation was not marked as verifiable.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
188 this.VerifyAll();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
189 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
190 </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
191 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
192 <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
193 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
194 Gets the interceptor target for the given expression and root mock,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
195 building the intermediate hierarchy of mock objects if necessary.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
196 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
197 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
198 <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
199 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
200 Raises the associated event with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
201 event argument data.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
202 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
203 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
204 <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
205 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
206 Raises the associated event with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
207 event argument data.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
208 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
209 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
210 <member name="M:Moq.Mock.As``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
211 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
212 Adds an interface implementation to the mock,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
213 allowing setups to be specified for it.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
214 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
215 This method can only be called before the first use
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
216 of the mock <see cref="P:Moq.Mock.Object"/> property, at which
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
217 point the runtime type has already been generated
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
218 and no more interfaces can be added to it.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
219 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
220 Also, <typeparamref name="TInterface"/> must be an
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
221 interface and not a class, which must be specified
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
222 when creating the mock instead.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
223 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
224 </remarks><exception cref="T:System.InvalidOperationException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
225 The mock type
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
226 has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
227 </exception><exception cref="T:System.ArgumentException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
228 The <typeparamref name="TInterface"/> specified
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
229 is not an interface.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
230 </exception><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
231 The following example creates a mock for the main interface
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
232 and later adds <see cref="T:System.IDisposable"/> to it to verify
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
233 it's called by the consumer code:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
234 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
235 var mock = new Mock&lt;IProcessor&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
236 mock.Setup(x =&gt; x.Execute("ping"));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
237
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
238 // add IDisposable interface
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
239 var disposable = mock.As&lt;IDisposable&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
240 disposable.Setup(d =&gt; d.Dispose()).Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
241 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
242 </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
243 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
244 <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
245 <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for=&quot;Mock.SetReturnDefault{TReturn}&quot;]/*"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
246 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
247 <member name="M:Moq.Mock.Of``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
248 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
249 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
250 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
251 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
252 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
253 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
254 <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
255 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
256 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
257 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
258 <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
259 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
260 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
261 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
262 <member name="P:Moq.Mock.Behavior">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
263 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
264 Behavior of the mock, according to the value set in the constructor.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
265 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
266 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
267 <member name="P:Moq.Mock.CallBase">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
268 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
269 Whether the base member virtual implementation will be called
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
270 for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
271 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
272 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
273 <member name="P:Moq.Mock.DefaultValue">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
274 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
275 Specifies the behavior to use when returning default values for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
276 unexpected invocations on loose mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
277 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
278 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
279 <member name="P:Moq.Mock.Object">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
280 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
281 Gets the mocked object instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
282 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
283 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
284 <member name="P:Moq.Mock.MockedType">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
285 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
286 Retrieves the type of the mocked object, its generic type argument.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
287 This is used in the auto-mocking of hierarchy access.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
288 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
289 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
290 <member name="P:Moq.Mock.DefaultValueProvider">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
291 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
292 Specifies the class that will determine the default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
293 value to return when invocations are made that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
294 have no setups and need to return a default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
295 value (for loose mocks).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
296 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
297 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
298 <member name="P:Moq.Mock.ImplementedInterfaces">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
299 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
300 Exposes the list of extra interfaces implemented by the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
301 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
302 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
303 <member name="M:Moq.Mock`1.#ctor(System.Boolean)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
304 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
305 Ctor invoked by AsTInterface exclusively.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
306 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
307 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
308 <member name="M:Moq.Mock`1.#ctor">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
309 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
310 Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
311 </summary><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
312 <code>var mock = new Mock&lt;IFormatProvider&gt;();</code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
313 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
314 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
315 <member name="M:Moq.Mock`1.#ctor(System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
316 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
317 Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
318 the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
319 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
320 The mock will try to find the best match constructor given the constructor arguments, and invoke that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
321 to initialize the instance. This applies only for classes, not interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
322 </remarks><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
323 <code>var mock = new Mock&lt;MyProvider&gt;(someArgument, 25);</code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
324 </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
325 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
326 <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
327 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
328 Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
329 </summary><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
330 <code>var mock = new Mock&lt;IFormatProvider&gt;(MockBehavior.Relaxed);</code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
331 </example><param name="behavior">Behavior of the mock.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
332 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
333 <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
334 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
335 Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
336 the given constructor arguments for the class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
337 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
338 The mock will try to find the best match constructor given the constructor arguments, and invoke that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
339 to initialize the instance. This applies only to classes, not interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
340 </remarks><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
341 <code>var mock = new Mock&lt;MyProvider&gt;(someArgument, 25);</code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
342 </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
343 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
344 <member name="M:Moq.Mock`1.OnGetObject">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
345 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
346 Returns the mocked object value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
347 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
348 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
349 <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
350 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
351 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
352 to a void method.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
353 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
354 If more than one setup is specified for the same method or property,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
355 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
356 </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
357 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
358 var mock = new Mock&lt;IProcessor&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
359 mock.Setup(x =&gt; x.Execute("ping"));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
360 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
361 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
362 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
363 <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
364 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
365 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
366 to a value returning method.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
367 </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
368 If more than one setup is specified for the same method or property,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
369 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
370 </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
371 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
372 mock.Setup(x =&gt; x.HasInventory("Talisker", 50)).Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
373 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
374 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
375 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
376 <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
377 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
378 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
379 to a property getter.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
380 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
381 If more than one setup is set for the same property getter,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
382 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
383 </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="expression">Lambda expression that specifies the property getter.</param><example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
384 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
385 mock.SetupGet(x =&gt; x.Suspended)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
386 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
387 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
388 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
389 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
390 <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
391 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
392 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
393 to a property setter.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
394 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
395 If more than one setup is set for the same property setter,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
396 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
397 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
398 This overloads allows the use of a callback already
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
399 typed for the property type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
400 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
401 </remarks><typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam><param name="setterExpression">The Lambda expression that sets a property to a value.</param><example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
402 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
403 mock.SetupSet(x =&gt; x.Suspended = true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
404 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
405 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
406 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
407 <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
408 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
409 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
410 to a property setter.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
411 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
412 If more than one setup is set for the same property setter,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
413 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
414 </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
415 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
416 mock.SetupSet(x =&gt; x.Suspended = true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
417 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
418 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
419 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
420 <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
421 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
422 Specifies that the given property should have "property behavior",
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
423 meaning that setting its value will cause it to be saved and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
424 later returned when the property is requested. (this is also
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
425 known as "stubbing").
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
426 </summary><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
427 Type of the property, inferred from the property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
428 expression (does not need to be specified).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
429 </typeparam><param name="property">Property expression to stub.</param><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
430 If you have an interface with an int property <c>Value</c>, you might
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
431 stub it using the following straightforward call:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
432 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
433 var mock = new Mock&lt;IHaveValue&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
434 mock.Stub(v =&gt; v.Value);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
435 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
436 After the <c>Stub</c> call has been issued, setting and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
437 retrieving the object value will behave as expected:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
438 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
439 IHaveValue v = mock.Object;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
440
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
441 v.Value = 5;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
442 Assert.Equal(5, v.Value);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
443 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
444 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
445 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
446 <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
447 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
448 Specifies that the given property should have "property behavior",
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
449 meaning that setting its value will cause it to be saved and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
450 later returned when the property is requested. This overload
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
451 allows setting the initial value for the property. (this is also
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
452 known as "stubbing").
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
453 </summary><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
454 Type of the property, inferred from the property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
455 expression (does not need to be specified).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
456 </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
457 If you have an interface with an int property <c>Value</c>, you might
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
458 stub it using the following straightforward call:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
459 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
460 var mock = new Mock&lt;IHaveValue&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
461 mock.SetupProperty(v =&gt; v.Value, 5);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
462 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
463 After the <c>SetupProperty</c> call has been issued, setting and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
464 retrieving the object value will behave as expected:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
465 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
466 IHaveValue v = mock.Object;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
467 // Initial value was stored
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
468 Assert.Equal(5, v.Value);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
469
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
470 // New value set which changes the initial value
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
471 v.Value = 6;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
472 Assert.Equal(6, v.Value);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
473 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
474 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
475 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
476 <member name="M:Moq.Mock`1.SetupAllProperties">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
477 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
478 Specifies that the all properties on the mock should have "property behavior",
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
479 meaning that setting its value will cause it to be saved and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
480 later returned when the property is requested. (this is also
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
481 known as "stubbing"). The default value for each property will be the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
482 one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
483 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
484 If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
485 the mocked default values will also get all properties setup recursively.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
486 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
487 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
488 <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
489 <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for=&quot;Mock{T}.When&quot;]/*"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
490 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
491 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
492 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
493 Verifies that a specific invocation matching the given expression was performed on the mock. Use
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
494 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
495 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
496 This example assumes that the mock has been used, and later we want to verify that a given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
497 invocation with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
498 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
499 var mock = new Mock&lt;IProcessor&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
500 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
501 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
502 // Will throw if the test code didn't call Execute with a "ping" string argument.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
503 mock.Verify(proc =&gt; proc.Execute("ping"));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
504 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
505 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
506 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
507 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
508 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
509 Verifies that a specific invocation matching the given expression was performed on the mock. Use
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
510 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
511 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
512 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
513 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
514 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
515 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
516 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
517 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
518 Verifies that a specific invocation matching the given expression was performed on the mock,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
519 specifying a failure error message. Use in conjuntion with the default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
520 <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
521 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
522 This example assumes that the mock has been used, and later we want to verify that a given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
523 invocation with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
524 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
525 var mock = new Mock&lt;IProcessor&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
526 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
527 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
528 // Will throw if the test code didn't call Execute with a "ping" string argument.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
529 mock.Verify(proc =&gt; proc.Execute("ping"));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
530 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
531 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
532 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
533 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
534 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
535 Verifies that a specific invocation matching the given expression was performed on the mock,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
536 specifying a failure error message. Use in conjuntion with the default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
537 <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
538 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
539 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
540 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
541 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
542 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
543 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
544 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
545 Verifies that a specific invocation matching the given expression was performed on the mock. Use
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
546 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
547 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
548 This example assumes that the mock has been used, and later we want to verify that a given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
549 invocation with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
550 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
551 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
552 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
553 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
554 // Will throw if the test code didn't call HasInventory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
555 mock.Verify(warehouse =&gt; warehouse.HasInventory(TALISKER, 50));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
556 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
557 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
558 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
559 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
560 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
561 Verifies that a specific invocation matching the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
562 expression was performed on the mock. Use in conjuntion
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
563 with the default <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
564 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
565 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
566 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
567 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
568 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
569 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
570 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
571 Verifies that a specific invocation matching the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
572 expression was performed on the mock, specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
573 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
574 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
575 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
576 and later we want to verify that a given invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
577 with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
578 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
579 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
580 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
581 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
582 // Will throw if the test code didn't call HasInventory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
583 mock.Verify(warehouse =&gt; warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
584 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
585 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
586 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
587 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
588 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
589 Verifies that a specific invocation matching the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
590 expression was performed on the mock, specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
591 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
592 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
593 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
594 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
595 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TResult">Type of return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
596 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
597 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
598 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
599 Verifies that a property was read on the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
600 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
601 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
602 and later we want to verify that a given property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
603 was retrieved from it:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
604 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
605 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
606 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
607 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
608 // Will throw if the test code didn't retrieve the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
609 mock.VerifyGet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
610 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
611 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
612 Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
613 be inferred from the expression's return type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
614 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
615 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
616 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
617 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
618 Verifies that a property was read on the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
619 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
620 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
621 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
622 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
623 Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
624 be inferred from the expression's return type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
625 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
626 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
627 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
628 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
629 Verifies that a property was read on the mock, specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
630 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
631 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
632 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
633 and later we want to verify that a given property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
634 was retrieved from it:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
635 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
636 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
637 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
638 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
639 // Will throw if the test code didn't retrieve the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
640 mock.VerifyGet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
641 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
642 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
643 Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
644 be inferred from the expression's return type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
645 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
646 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
647 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
648 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
649 Verifies that a property was read on the mock, specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
650 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
651 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
652 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
653 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
654 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="expression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param><typeparam name="TProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
655 Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
656 be inferred from the expression's return type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
657 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
658 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
659 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
660 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
661 Verifies that a property was set on the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
662 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
663 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
664 and later we want to verify that a given property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
665 was set on it:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
666 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
667 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
668 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
669 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
670 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
671 mock.VerifySet(warehouse =&gt; warehouse.IsClosed = true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
672 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
673 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
674 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
675 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
676 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
677 Verifies that a property was set on the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
678 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
679 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
680 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
681 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
682 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
683 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
684 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
685 Verifies that a property was set on the mock, specifying
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
686 a failure message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
687 </summary><example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
688 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
689 and later we want to verify that a given property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
690 was set on it:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
691 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
692 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
693 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
694 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
695 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
696 mock.VerifySet(warehouse =&gt; warehouse.IsClosed = true, "Warehouse should always be closed after the action");
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
697 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
698 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
699 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
700 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
701 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
702 Verifies that a property was set on the mock, specifying
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
703 a failure message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
704 </summary><exception cref="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
705 The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
706 <paramref name="times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
707 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param><param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
708 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
709 <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
710 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
711 Raises the event referenced in <paramref name="eventExpression"/> using
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
712 the given <paramref name="args"/> argument.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
713 </summary><exception cref="T:System.ArgumentException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
714 The <paramref name="args"/> argument is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
715 invalid for the target event invocation, or the <paramref name="eventExpression"/> is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
716 not an event attach or detach expression.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
717 </exception><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
718 The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
719 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
720 var mock = new Mock&lt;IViewModel&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
721
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
722 mock.Raise(x =&gt; x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
723 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
724 </example><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
725 This example shows how to invoke an event with a custom event arguments
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
726 class in a view that will cause its corresponding presenter to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
727 react by changing its state:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
728 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
729 var mockView = new Mock&lt;IOrdersView&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
730 var presenter = new OrdersPresenter(mockView.Object);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
731
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
732 // Check that the presenter has no selection by default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
733 Assert.Null(presenter.SelectedOrder);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
734
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
735 // Raise the event with a specific arguments data
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
736 mockView.Raise(v =&gt; v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
737
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
738 // Now the presenter reacted to the event, and we have a selected order
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
739 Assert.NotNull(presenter.SelectedOrder);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
740 Assert.Equal("moq", presenter.SelectedOrder.ProductName);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
741 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
742 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
743 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
744 <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
745 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
746 Raises the event referenced in <paramref name="eventExpression"/> using
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
747 the given <paramref name="args"/> argument for a non-EventHandler typed event.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
748 </summary><exception cref="T:System.ArgumentException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
749 The <paramref name="args"/> arguments are
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
750 invalid for the target event invocation, or the <paramref name="eventExpression"/> is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
751 not an event attach or detach expression.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
752 </exception><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
753 The following example shows how to raise a custom event that does not adhere to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
754 the standard <c>EventHandler</c>:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
755 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
756 var mock = new Mock&lt;IViewModel&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
757
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
758 mock.Raise(x =&gt; x.MyEvent -= null, "Name", bool, 25);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
759 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
760 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
761 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
762 <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
763 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
764 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
765 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
766 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
767 <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
768 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
769 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
770 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
771 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
772 <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
773 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
774 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
775 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
776 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
777 <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
778 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
779 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
780 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
781 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
782 <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
783 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
784 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
785 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
786 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
787 <member name="P:Moq.Mock`1.Object">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
788 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
789 Exposes the mocked object instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
790 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
791 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
792 <member name="T:Moq.Matchers.MatcherAttributeMatcher">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
793 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
794 Matcher to treat static functions as matchers.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
795
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
796 mock.Setup(x => x.StringMethod(A.MagicString()));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
797
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
798 public static class A
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
799 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
800 [Matcher]
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
801 public static string MagicString() { return null; }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
802 public static bool MagicString(string arg)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
803 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
804 return arg == "magic";
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
805 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
806 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
807
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
808 Will succeed if: mock.Object.StringMethod("magic");
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
809 and fail with any other call.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
810 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
811 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
812 <member name="T:Moq.Language.IRaise`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
813 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
814 Defines the <c>Raises</c> verb.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
815 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
816 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
817 <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
818 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
819 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
820 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
821 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
822 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
823 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
824 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
825 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
826 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
827 <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
828 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
829 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
830 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
831 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
832 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
833 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
834 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
835 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
836 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
837 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
838 <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
839 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
840 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
841 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
842 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
843 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
844 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
845 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
846 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
847 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
848 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
849 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
850 <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
851 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
852 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
853 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
854 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
855 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
856 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
857 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
858 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
859 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
860 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
861 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
862 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
863 <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
864 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
865 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
866 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
867 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
868 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
869 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
870 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
871 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
872 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
873 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
874 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
875 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
876 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
877 <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
878 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
879 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
880 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
881 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
882 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
883 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
884 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
885 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
886 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
887 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
888 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
889 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
890 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
891 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
892 <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
893 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
894 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
895 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
896 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
897 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
898 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
899 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
900 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
901 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
902 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
903 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
904 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
905 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
906 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
907 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
908 <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
909 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
910 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
911 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
912 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
913 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
914 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
915 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
916 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
917 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
918 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
919 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
920 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
921 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
922 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
923 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
924 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
925 <member name="M:Moq.Language.IRaise`1.Raises``9(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
926 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
927 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
928 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
929 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
930 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
931 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
932 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
933 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
934 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
935 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
936 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
937 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
938 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
939 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
940 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
941 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
942 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
943 <member name="M:Moq.Language.IRaise`1.Raises``10(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
944 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
945 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
946 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
947 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
948 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
949 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
950 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
951 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
952 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
953 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
954 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
955 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
956 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
957 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
958 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
959 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
960 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
961 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
962 <member name="M:Moq.Language.IRaise`1.Raises``11(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
963 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
964 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
965 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
966 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
967 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
968 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
969 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
970 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
971 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
972 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
973 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
974 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
975 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
976 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
977 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
978 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
979 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
980 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
981 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
982 <member name="M:Moq.Language.IRaise`1.Raises``12(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
983 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
984 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
985 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
986 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
987 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
988 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
989 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
990 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
991 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
992 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
993 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
994 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
995 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
996 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
997 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
998 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
999 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1000 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1001 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1002 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1003 <member name="M:Moq.Language.IRaise`1.Raises``13(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1004 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1005 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1006 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1007 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1008 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1009 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1010 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1011 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1012 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1013 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1014 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1015 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1016 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1017 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1018 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1019 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1020 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1021 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1022 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1023 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1024 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1025 <member name="M:Moq.Language.IRaise`1.Raises``14(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1026 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1027 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1028 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1029 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1030 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1031 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1032 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1033 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1034 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1035 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1036 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1037 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1038 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1039 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1040 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1041 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1042 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1043 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1044 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1045 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1046 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1047 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1048 <member name="M:Moq.Language.IRaise`1.Raises``15(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1049 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1050 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1051 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1052 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1053 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1054 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1055 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1056 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1057 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1058 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1059 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1060 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1061 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1062 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1063 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1064 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1065 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1066 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1067 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1068 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1069 <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1070 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1071 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1072 <member name="M:Moq.Language.IRaise`1.Raises``16(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1073 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1074 Specifies the event that will be raised when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1075 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1076 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1077 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1078 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1079 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1080 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1081 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1082 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1083 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1084 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1085 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1086 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1087 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1088 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1089 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1090 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1091 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1092 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1093 <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1094 <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1095 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1096 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1097 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1098 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1099 Specifies the event that will be raised
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1100 when the setup is met.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1101 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1102 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1103 <param name="args">The event arguments to pass for the raised event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1104 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1105 The following example shows how to raise an event when
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1106 the setup is met:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1107 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1108 var mock = new Mock&lt;IContainer&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1109
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1110 mock.Setup(add => add.Add(It.IsAny&lt;string&gt;(), It.IsAny&lt;object&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1111 .Raises(add => add.Added += null, EventArgs.Empty);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1112 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1113 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1114 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1115 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1116 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1117 Specifies the event that will be raised
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1118 when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1119 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1120 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1121 <param name="func">A function that will build the <see cref="T:System.EventArgs"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1122 to pass when raising the event.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1123 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1124 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1125 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1126 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1127 Specifies the custom event that will be raised
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1128 when the setup is matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1129 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1130 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1131 <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1132 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1133 <member name="T:Moq.Evaluator">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1134 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1135 Provides partial evaluation of subtrees, whenever they can be evaluated locally.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1136 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1137 <author>Matt Warren: http://blogs.msdn.com/mattwar</author>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1138 <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1139 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1140 <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1141 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1142 Performs evaluation and replacement of independent sub-trees
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1143 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1144 <param name="expression">The root of the expression tree.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1145 <param name="fnCanBeEvaluated">A function that decides whether a given expression
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1146 node can be part of the local function.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1147 <returns>A new tree with sub-trees evaluated and replaced.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1148 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1149 <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1150 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1151 Performs evaluation and replacement of independent sub-trees
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1152 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1153 <param name="expression">The root of the expression tree.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1154 <returns>A new tree with sub-trees evaluated and replaced.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1155 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1156 <member name="T:Moq.Evaluator.SubtreeEvaluator">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1157 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1158 Evaluates and replaces sub-trees when first candidate is reached (top-down)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1159 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1160 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1161 <member name="T:Moq.Evaluator.Nominator">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1162 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1163 Performs bottom-up analysis to determine which nodes can possibly
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1164 be part of an evaluated sub-tree.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1165 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1166 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1167 <member name="T:Moq.Protected.IProtectedMock`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1168 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1169 Allows setups to be specified for protected members by using their
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1170 name as a string, rather than strong-typing them which is not possible
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1171 due to their visibility.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1172 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1173 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1174 <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1175 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1176 Specifies a setup for a void method invocation with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1177 <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1178 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1179 <param name="voidMethodName">The name of the void method to be invoked.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1180 <param name="args">The optional arguments for the invocation. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1181 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1182 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1183 <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1184 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1185 Specifies a setup for an invocation on a property or a non void method with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1186 <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1187 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1188 <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1189 <param name="args">The optional arguments for the invocation. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1190 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1191 <typeparam name="TResult">The return type of the method or property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1192 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1193 <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1194 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1195 Specifies a setup for an invocation on a property getter with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1196 <paramref name="propertyName"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1197 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1198 <param name="propertyName">The name of the property.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1199 <typeparam name="TProperty">The type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1200 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1201 <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1202 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1203 Specifies a setup for an invocation on a property setter with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1204 <paramref name="propertyName"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1205 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1206 <param name="propertyName">The name of the property.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1207 <param name="value">The property value. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1208 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1209 <typeparam name="TProperty">The type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1210 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1211 <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1212 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1213 Specifies a verify for a void method with the given <paramref name="methodName"/>,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1214 optionally specifying arguments for the method call. Use in conjuntion with the default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1215 <see cref="F:Moq.MockBehavior.Loose"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1216 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1217 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1218 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1219 <param name="methodName">The name of the void method to be verified.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1220 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1221 <param name="args">The optional arguments for the invocation. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1222 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1223 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1224 <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1225 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1226 Specifies a verify for an invocation on a property or a non void method with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1227 <paramref name="methodName"/>, optionally specifying arguments for the method call.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1228 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1229 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1230 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1231 <param name="methodName">The name of the method or property to be invoked.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1232 <param name="args">The optional arguments for the invocation. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1233 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1234 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1235 <typeparam name="TResult">The type of return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1236 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1237 <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1238 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1239 Specifies a verify for an invocation on a property getter with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1240 <paramref name="propertyName"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1241 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1242 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1243 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1244 <param name="propertyName">The name of the property.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1245 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1246 <typeparam name="TProperty">The type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1247 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1248 <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1249 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1250 Specifies a setup for an invocation on a property setter with the given
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1251 <paramref name="propertyName"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1252 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1253 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1254 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1255 <param name="propertyName">The name of the property.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1256 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1257 <param name="value">The property value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1258 <typeparam name="TProperty">The type of the property. If argument matchers are used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1259 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1260 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1261 <member name="T:Moq.MatcherAttribute">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1262 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1263 Marks a method as a matcher, which allows complete replacement
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1264 of the built-in <see cref="T:Moq.It"/> class with your own argument
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1265 matching rules.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1266 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1267 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1268 <b>This feature has been deprecated in favor of the new
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1269 and simpler <see cref="T:Moq.Match`1"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1270 </b>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1271 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1272 The argument matching is used to determine whether a concrete
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1273 invocation in the mock matches a given setup. This
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1274 matching mechanism is fully extensible.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1275 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1276 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1277 There are two parts of a matcher: the compiler matcher
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1278 and the runtime matcher.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1279 <list type="bullet">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1280 <item>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1281 <term>Compiler matcher</term>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1282 <description>Used to satisfy the compiler requirements for the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1283 argument. Needs to be a method optionally receiving any arguments
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1284 you might need for the matching, but with a return type that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1285 matches that of the argument.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1286 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1287 Let's say I want to match a lists of orders that contains
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1288 a particular one. I might create a compiler matcher like the following:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1289 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1290 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1291 public static class Orders
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1292 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1293 [Matcher]
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1294 public static IEnumerable&lt;Order&gt; Contains(Order order)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1295 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1296 return null;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1297 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1298 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1299 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1300 Now we can invoke this static method instead of an argument in an
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1301 invocation:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1302 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1303 var order = new Order { ... };
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1304 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1305
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1306 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1307 .Throws&lt;ArgumentException&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1308 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1309 Note that the return value from the compiler matcher is irrelevant.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1310 This method will never be called, and is just used to satisfy the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1311 compiler and to signal Moq that this is not a method that we want
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1312 to be invoked at runtime.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1313 </description>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1314 </item>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1315 <item>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1316 <term>Runtime matcher</term>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1317 <description>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1318 The runtime matcher is the one that will actually perform evaluation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1319 when the test is run, and is defined by convention to have the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1320 same signature as the compiler matcher, but where the return
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1321 value is the first argument to the call, which contains the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1322 object received by the actual invocation at runtime:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1323 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1324 public static bool Contains(IEnumerable&lt;Order&gt; orders, Order order)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1325 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1326 return orders.Contains(order);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1327 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1328 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1329 At runtime, the mocked method will be invoked with a specific
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1330 list of orders. This value will be passed to this runtime
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1331 matcher as the first argument, while the second argument is the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1332 one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1333 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1334 The boolean returned determines whether the given argument has been
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1335 matched. If all arguments to the expected method are matched, then
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1336 the setup matches and is evaluated.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1337 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1338 </description>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1339 </item>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1340 </list>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1341 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1342 Using this extensible infrastructure, you can easily replace the entire
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1343 <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1344 typical (and annoying) lengthy expressions that result when you have
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1345 multiple arguments that use generics.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1346 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1347 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1348 The following is the complete example explained above:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1349 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1350 public static class Orders
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1351 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1352 [Matcher]
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1353 public static IEnumerable&lt;Order&gt; Contains(Order order)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1354 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1355 return null;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1356 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1357
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1358 public static bool Contains(IEnumerable&lt;Order&gt; orders, Order order)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1359 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1360 return orders.Contains(order);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1361 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1362 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1363 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1364 And the concrete test using this matcher:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1365 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1366 var order = new Order { ... };
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1367 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1368
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1369 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1370 .Throws&lt;ArgumentException&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1371
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1372 // use mock, invoke Save, and have the matcher filter.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1373 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1374 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1375 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1376 <member name="T:Moq.Language.ICallbackGetter`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1377 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1378 Defines the <c>Callback</c> verb for property getter setups.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1379 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1380 <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1381 <typeparam name="TMock">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1382 <typeparam name="TProperty">Type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1383 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1384 <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1385 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1386 Specifies a callback to invoke when the property is retrieved.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1387 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1388 <param name="action">Callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1389 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1390 Invokes the given callback with the property value being set.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1391 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1392 mock.SetupGet(x => x.Suspended)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1393 .Callback(() => called = true)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1394 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1395 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1396 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1397 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1398 <member name="T:Moq.It">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1399 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1400 Allows the specification of a matching condition for an
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1401 argument in a method invocation, rather than a specific
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1402 argument value. "It" refers to the argument being matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1403 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1404 This class allows the setup to match a method invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1405 with an arbitrary value, with a value in a specified range, or
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1406 even one that matches a given predicate.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1407 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1408 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1409 <member name="M:Moq.It.IsAny``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1410 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1411 Matches any value of the given <typeparamref name="TValue"/> type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1412 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1413 Typically used when the actual argument value for a method
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1414 call is not relevant.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1415 </remarks><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1416 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1417 // Throws an exception for a call to Remove with any string value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1418 mock.Setup(x =&gt; x.Remove(It.IsAny&lt;string&gt;())).Throws(new InvalidOperationException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1419 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1420 </example><typeparam name="TValue">Type of the value.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1421 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1422 <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1423 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1424 Matches any value that satisfies the given predicate.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1425 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1426 Allows the specification of a predicate to perform matching
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1427 of method call arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1428 </remarks><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1429 This example shows how to return the value <c>1</c> whenever the argument to the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1430 <c>Do</c> method is an even number.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1431 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1432 mock.Setup(x =&gt; x.Do(It.Is&lt;int&gt;(i =&gt; i % 2 == 0)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1433 .Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1434 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1435 This example shows how to throw an exception if the argument to the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1436 method is a negative number:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1437 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1438 mock.Setup(x =&gt; x.GetUser(It.Is&lt;int&gt;(i =&gt; i &lt; 0)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1439 .Throws(new ArgumentException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1440 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1441 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1442 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1443 <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1444 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1445 Matches any value that is in the range specified.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1446 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="from">The lower bound of the range.</param><param name="to">The upper bound of the range.</param><param name="rangeKind">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1447 The kind of range. See <see cref="T:Moq.Range"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1448 </param><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1449 The following example shows how to expect a method call
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1450 with an integer argument within the 0..100 range.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1451 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1452 mock.Setup(x =&gt; x.HasInventory(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1453 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1454 It.IsInRange(0, 100, Range.Inclusive)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1455 .Returns(false);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1456 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1457 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1458 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1459 <member name="M:Moq.It.IsRegex(System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1460 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1461 Matches a string argument if it matches the given regular expression pattern.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1462 </summary><param name="regex">The pattern to use to match the string argument value.</param><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1463 The following example shows how to expect a call to a method where the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1464 string argument matches the given regular expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1465 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1466 mock.Setup(x =&gt; x.Check(It.IsRegex("[a-z]+"))).Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1467 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1468 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1469 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1470 <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1471 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1472 Matches a string argument if it matches the given regular expression pattern.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1473 </summary><param name="regex">The pattern to use to match the string argument value.</param><param name="options">The options used to interpret the pattern.</param><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1474 The following example shows how to expect a call to a method where the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1475 string argument matches the given regular expression, in a case insensitive way:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1476 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1477 mock.Setup(x =&gt; x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1478 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1479 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1480 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1481 <member name="T:Moq.MethodCallReturn">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1482 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1483 We need this non-generics base class so that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1484 we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1485 generic code.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1486 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1487 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1488 <member name="T:Moq.Language.Flow.ICallbackResult">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1489 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1490 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1491 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1492 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1493 <member name="T:Moq.Language.IThrows">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1494 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1495 Defines the <c>Throws</c> verb.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1496 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1497 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1498 <member name="M:Moq.Language.IThrows.Throws(System.Exception)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1499 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1500 Specifies the exception to throw when the method is invoked.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1501 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1502 <param name="exception">Exception instance to throw.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1503 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1504 This example shows how to throw an exception when the method is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1505 invoked with an empty string argument:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1506 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1507 mock.Setup(x =&gt; x.Execute(""))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1508 .Throws(new ArgumentException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1509 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1510 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1511 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1512 <member name="M:Moq.Language.IThrows.Throws``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1513 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1514 Specifies the type of exception to throw when the method is invoked.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1515 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1516 <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1517 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1518 This example shows how to throw an exception when the method is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1519 invoked with an empty string argument:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1520 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1521 mock.Setup(x =&gt; x.Execute(""))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1522 .Throws&lt;ArgumentException&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1523 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1524 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1525 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1526 <member name="T:Moq.Language.Flow.IThrowsResult">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1527 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1528 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1529 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1530 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1531 <member name="T:Moq.Language.IOccurrence">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1532 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1533 Defines occurrence members to constraint setups.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1534 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1535 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1536 <member name="M:Moq.Language.IOccurrence.AtMostOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1537 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1538 The expected invocation can happen at most once.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1539 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1540 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1541 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1542 var mock = new Mock&lt;ICommand&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1543 mock.Setup(foo => foo.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1544 .AtMostOnce();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1545 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1546 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1547 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1548 <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1549 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1550 The expected invocation can happen at most specified number of times.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1551 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1552 <param name="callCount">The number of times to accept calls.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1553 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1554 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1555 var mock = new Mock&lt;ICommand&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1556 mock.Setup(foo => foo.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1557 .AtMost( 5 );
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1558 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1559 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1560 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1561 <member name="T:Moq.Language.IVerifies">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1562 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1563 Defines the <c>Verifiable</c> verb.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1564 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1565 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1566 <member name="M:Moq.Language.IVerifies.Verifiable">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1567 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1568 Marks the expectation as verifiable, meaning that a call
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1569 to <see cref="M:Moq.Mock.Verify"/> will check if this particular
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1570 expectation was met.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1571 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1572 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1573 The following example marks the expectation as verifiable:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1574 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1575 mock.Expect(x =&gt; x.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1576 .Returns(true)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1577 .Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1578 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1579 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1580 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1581 <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1582 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1583 Marks the expectation as verifiable, meaning that a call
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1584 to <see cref="M:Moq.Mock.Verify"/> will check if this particular
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1585 expectation was met, and specifies a message for failures.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1586 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1587 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1588 The following example marks the expectation as verifiable:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1589 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1590 mock.Expect(x =&gt; x.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1591 .Returns(true)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1592 .Verifiable("Ping should be executed always!");
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1593 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1594 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1595 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1596 <member name="T:Moq.Language.Flow.ISetup`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1597 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1598 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1599 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1600 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1601 <member name="T:Moq.Language.ICallback`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1602 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1603 Defines the <c>Callback</c> verb and overloads for callbacks on
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1604 setups that return a value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1605 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1606 <typeparam name="TMock">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1607 <typeparam name="TResult">Type of the return value of the setup.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1608 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1609 <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1610 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1611 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1612 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1613 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1614 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1615 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1616 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1617 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1618 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1619 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1620 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1621 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1622 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1623 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1624 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1625 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1626 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1627 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1628 .Callback((arg1, arg2) =&gt; Console.WriteLine(arg1 + arg2));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1629 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1630 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1631 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1632 <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1633 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1634 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1635 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1636 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1637 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1638 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1639 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1640 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1641 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1642 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1643 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1644 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1645 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1646 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1647 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1648 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1649 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1650 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1651 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1652 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1653 .Callback((arg1, arg2, arg3) =&gt; Console.WriteLine(arg1 + arg2 + arg3));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1654 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1655 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1656 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1657 <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1658 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1659 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1660 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1661 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1662 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1663 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1664 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1665 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1666 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1667 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1668 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1669 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1670 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1671 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1672 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1673 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1674 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1675 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1676 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1677 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1678 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1679 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1680 .Callback((arg1, arg2, arg3, arg4) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1681 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1682 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1683 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1684 <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1685 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1686 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1687 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1688 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1689 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1690 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1691 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1692 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1693 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1694 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1695 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1696 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1697 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1698 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1699 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1700 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1701 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1702 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1703 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1704 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1705 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1706 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1707 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1708 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1709 .Callback((arg1, arg2, arg3, arg4, arg5) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1710 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1711 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1712 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1713 <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1714 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1715 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1716 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1717 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1718 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1719 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1720 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1721 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1722 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1723 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1724 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1725 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1726 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1727 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1728 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1729 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1730 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1731 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1732 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1733 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1734 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1735 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1736 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1737 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1738 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1739 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1740 .Callback((arg1, arg2, arg3, arg4, arg5, arg6) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1741 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1742 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1743 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1744 <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1745 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1746 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1747 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1748 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1749 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1750 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1751 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1752 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1753 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1754 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1755 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1756 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1757 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1758 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1759 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1760 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1761 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1762 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1763 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1764 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1765 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1766 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1767 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1768 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1769 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1770 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1771 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1772 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1773 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1774 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1775 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1776 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1777 <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1778 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1779 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1780 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1781 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1782 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1783 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1784 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1785 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1786 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1787 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1788 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1789 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1790 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1791 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1792 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1793 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1794 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1795 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1796 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1797 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1798 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1799 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1800 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1801 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1802 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1803 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1804 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1805 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1806 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1807 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1808 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1809 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1810 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1811 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1812 <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1813 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1814 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1815 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1816 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1817 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1818 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1819 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1820 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1821 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1822 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1823 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1824 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1825 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1826 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1827 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1828 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1829 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1830 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1831 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1832 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1833 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1834 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1835 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1836 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1837 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1838 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1839 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1840 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1841 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1842 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1843 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1844 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1845 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1846 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1847 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1848 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1849 <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1850 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1851 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1852 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1853 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1854 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1855 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1856 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1857 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1858 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1859 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1860 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1861 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1862 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1863 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1864 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1865 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1866 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1867 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1868 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1869 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1870 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1871 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1872 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1873 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1874 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1875 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1876 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1877 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1878 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1879 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1880 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1881 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1882 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1883 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1884 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1885 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1886 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1887 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1888 <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1889 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1890 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1891 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1892 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1893 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1894 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1895 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1896 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1897 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1898 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1899 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1900 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1901 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1902 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1903 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1904 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1905 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1906 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1907 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1908 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1909 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1910 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1911 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1912 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1913 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1914 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1915 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1916 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1917 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1918 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1919 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1920 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1921 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1922 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1923 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1924 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1925 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1926 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1927 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1928 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1929 <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1930 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1931 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1932 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1933 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1934 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1935 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1936 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1937 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1938 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1939 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1940 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1941 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1942 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1943 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1944 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1945 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1946 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1947 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1948 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1949 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1950 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1951 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1952 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1953 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1954 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1955 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1956 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1957 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1958 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1959 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1960 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1961 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1962 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1963 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1964 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1965 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1966 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1967 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1968 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1969 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1970 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1971 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1972 <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1973 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1974 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1975 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1976 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1977 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1978 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1979 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1980 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1981 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1982 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1983 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1984 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1985 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1986 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1987 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1988 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1989 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1990 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1991 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1992 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1993 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1994 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1995 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1996 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1997 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1998 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
1999 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2000 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2001 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2002 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2003 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2004 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2005 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2006 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2007 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2008 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2009 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2010 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2011 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2012 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2013 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2014 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2015 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2016 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2017 <member name="M:Moq.Language.ICallback`2.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2018 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2019 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2020 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2021 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2022 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2023 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2024 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2025 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2026 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2027 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2028 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2029 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2030 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2031 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2032 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2033 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2034 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2035 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2036 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2037 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2038 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2039 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2040 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2041 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2042 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2043 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2044 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2045 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2046 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2047 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2048 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2049 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2050 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2051 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2052 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2053 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2054 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2055 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2056 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2057 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2058 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2059 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2060 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2061 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2062 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2063 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2064 <member name="M:Moq.Language.ICallback`2.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2065 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2066 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2067 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2068 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2069 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2070 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2071 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2072 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2073 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2074 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2075 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2076 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2077 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2078 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2079 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2080 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2081 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2082 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2083 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2084 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2085 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2086 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2087 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2088 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2089 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2090 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2091 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2092 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2093 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2094 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2095 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2096 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2097 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2098 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2099 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2100 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2101 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2102 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2103 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2104 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2105 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2106 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2107 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2108 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2109 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2110 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2111 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2112 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2113 <member name="M:Moq.Language.ICallback`2.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2114 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2115 Specifies a callback to invoke when the method is called that receives the original
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2116 arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2117 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2118 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2119 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2120 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2121 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2122 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2123 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2124 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2125 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2126 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2127 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2128 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2129 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2130 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2131 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2132 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2133 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2134 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2135 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2136 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2137 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2138 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2139 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2140 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2141 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2142 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2143 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2144 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2145 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2146 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2147 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2148 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2149 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2150 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2151 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2152 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2153 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2154 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2155 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2156 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2157 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2158 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2159 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2160 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2161 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2162 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2163 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2164 <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2165 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2166 Specifies a callback to invoke when the method is called.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2167 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2168 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2169 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2170 The following example specifies a callback to set a boolean value that can be used later:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2171 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2172 var called = false;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2173 mock.Setup(x => x.Execute())
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2174 .Callback(() => called = true)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2175 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2176 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2177 Note that in the case of value-returning methods, after the <c>Callback</c>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2178 call you can still specify the return value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2179 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2180 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2181 <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2182 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2183 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2184 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2185 <typeparam name="T">The type of the argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2186 <param name="action">Callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2187 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2188 Invokes the given callback with the concrete invocation argument value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2189 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2190 Notice how the specific string argument is retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2191 it as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2192 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2193 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2194 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2195 .Callback(command => Console.WriteLine(command))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2196 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2197 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2198 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2199 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2200 <member name="T:Moq.Language.Flow.IReturnsThrows`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2201 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2202 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2203 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2204 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2205 <member name="T:Moq.Language.IReturns`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2206 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2207 Defines the <c>Returns</c> verb.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2208 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2209 <typeparam name="TMock">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2210 <typeparam name="TResult">Type of the return value from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2211 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2212 <member name="M:Moq.Language.IReturns`2.Returns(`1)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2213 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2214 Specifies the value to return.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2215 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2216 <param name="value">The value to return, or <see langword="null"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2217 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2218 Return a <c>true</c> value from the method call:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2219 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2220 mock.Setup(x => x.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2221 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2222 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2223 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2224 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2225 <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2226 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2227 Specifies a function that will calculate the value to return from the method.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2228 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2229 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2230 <example group="returns">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2231 Return a calculated value when the method is called:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2232 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2233 mock.Setup(x => x.Execute("ping"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2234 .Returns(() => returnValues[0]);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2235 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2236 The lambda expression to retrieve the return value is lazy-executed,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2237 meaning that its value may change depending on the moment the method
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2238 is executed and the value the <c>returnValues</c> array has at
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2239 that moment.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2240 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2241 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2242 <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2243 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2244 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2245 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2246 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2247 <typeparam name="T">The type of the argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2248 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2249 <example group="returns">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2250 Return a calculated value which is evaluated lazily at the time of the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2251 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2252 The lookup list can change between invocations and the setup
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2253 will return different values accordingly. Also, notice how the specific
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2254 string argument is retrieved by simply declaring it as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2255 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2256 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2257 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2258 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2259 .Returns((string command) => returnValues[command]);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2260 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2261 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2262 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2263 <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2264 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2265 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2266 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2267 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2268 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2269 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2270 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2271 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2272 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2273 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2274 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2275 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2276 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2277 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2278 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2279 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2280 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2281 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2282 .Returns((string arg1, string arg2) => arg1 + arg2);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2283 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2284 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2285 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2286 <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2287 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2288 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2289 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2290 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2291 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2292 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2293 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2294 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2295 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2296 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2297 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2298 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2299 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2300 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2301 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2302 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2303 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2304 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2305 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2306 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2307 .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2308 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2309 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2310 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2311 <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2312 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2313 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2314 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2315 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2316 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2317 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2318 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2319 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2320 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2321 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2322 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2323 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2324 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2325 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2326 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2327 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2328 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2329 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2330 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2331 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2332 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2333 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2334 .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2335 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2336 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2337 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2338 <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2339 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2340 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2341 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2342 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2343 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2344 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2345 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2346 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2347 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2348 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2349 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2350 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2351 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2352 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2353 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2354 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2355 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2356 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2357 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2358 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2359 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2360 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2361 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2362 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2363 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2364 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2365 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2366 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2367 <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2368 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2369 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2370 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2371 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2372 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2373 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2374 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2375 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2376 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2377 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2378 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2379 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2380 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2381 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2382 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2383 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2384 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2385 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2386 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2387 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2388 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2389 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2390 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2391 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2392 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2393 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2394 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2395 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2396 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2397 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2398 <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2399 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2400 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2401 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2402 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2403 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2404 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2405 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2406 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2407 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2408 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2409 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2410 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2411 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2412 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2413 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2414 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2415 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2416 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2417 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2418 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2419 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2420 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2421 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2422 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2423 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2424 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2425 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2426 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2427 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2428 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2429 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2430 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2431 <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2432 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2433 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2434 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2435 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2436 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2437 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2438 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2439 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2440 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2441 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2442 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2443 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2444 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2445 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2446 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2447 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2448 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2449 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2450 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2451 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2452 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2453 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2454 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2455 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2456 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2457 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2458 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2459 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2460 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2461 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2462 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2463 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2464 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2465 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2466 <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2467 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2468 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2469 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2470 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2471 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2472 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2473 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2474 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2475 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2476 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2477 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2478 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2479 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2480 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2481 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2482 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2483 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2484 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2485 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2486 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2487 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2488 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2489 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2490 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2491 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2492 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2493 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2494 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2495 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2496 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2497 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2498 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2499 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2500 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2501 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2502 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2503 <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2504 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2505 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2506 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2507 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2508 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2509 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2510 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2511 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2512 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2513 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2514 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2515 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2516 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2517 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2518 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2519 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2520 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2521 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2522 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2523 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2524 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2525 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2526 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2527 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2528 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2529 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2530 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2531 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2532 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2533 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2534 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2535 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2536 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2537 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2538 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2539 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2540 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2541 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2542 <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2543 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2544 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2545 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2546 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2547 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2548 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2549 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2550 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2551 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2552 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2553 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2554 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2555 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2556 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2557 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2558 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2559 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2560 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2561 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2562 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2563 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2564 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2565 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2566 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2567 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2568 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2569 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2570 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2571 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2572 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2573 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2574 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2575 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2576 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2577 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2578 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2579 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2580 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2581 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2582 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2583 <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2584 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2585 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2586 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2587 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2588 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2589 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2590 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2591 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2592 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2593 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2594 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2595 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2596 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2597 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2598 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2599 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2600 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2601 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2602 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2603 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2604 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2605 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2606 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2607 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2608 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2609 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2610 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2611 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2612 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2613 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2614 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2615 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2616 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2617 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2618 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2619 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2620 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2621 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2622 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2623 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2624 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2625 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2626 <member name="M:Moq.Language.IReturns`2.Returns``13(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2627 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2628 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2629 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2630 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2631 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2632 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2633 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2634 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2635 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2636 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2637 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2638 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2639 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2640 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2641 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2642 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2643 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2644 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2645 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2646 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2647 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2648 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2649 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2650 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2651 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2652 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2653 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2654 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2655 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2656 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2657 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2658 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2659 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2660 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2661 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2662 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2663 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2664 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2665 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2666 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2667 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2668 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2669 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2670 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2671 <member name="M:Moq.Language.IReturns`2.Returns``14(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2672 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2673 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2674 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2675 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2676 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2677 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2678 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2679 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2680 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2681 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2682 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2683 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2684 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2685 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2686 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2687 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2688 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2689 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2690 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2691 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2692 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2693 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2694 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2695 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2696 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2697 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2698 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2699 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2700 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2701 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2702 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2703 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2704 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2705 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2706 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2707 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2708 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2709 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2710 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2711 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2712 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2713 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2714 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2715 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2716 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2717 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2718 <member name="M:Moq.Language.IReturns`2.Returns``15(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2719 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2720 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2721 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2722 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2723 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2724 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2725 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2726 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2727 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2728 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2729 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2730 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2731 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2732 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2733 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2734 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2735 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2736 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2737 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2738 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2739 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2740 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2741 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2742 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2743 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2744 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2745 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2746 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2747 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2748 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2749 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2750 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2751 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2752 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2753 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2754 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2755 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2756 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2757 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2758 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2759 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2760 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2761 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2762 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2763 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2764 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2765 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2766 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2767 <member name="M:Moq.Language.IReturns`2.Returns``16(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15,`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2768 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2769 Specifies a function that will calculate the value to return from the method,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2770 retrieving the arguments for the invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2771 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2772 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2773 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2774 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2775 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2776 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2777 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2778 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2779 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2780 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2781 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2782 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2783 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2784 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2785 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2786 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2787 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2788 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2789 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2790 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2791 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2792 The return value is calculated from the value of the actual method invocation arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2793 Notice how the arguments are retrieved by simply declaring them as part of the lambda
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2794 expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2795 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2796 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2797 mock.Setup(x => x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2798 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2799 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2800 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2801 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2802 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2803 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2804 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2805 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2806 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2807 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2808 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2809 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2810 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2811 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2812 It.IsAny&lt;int&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2813 It.IsAny&lt;int&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2814 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2815 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2816 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2817 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2818 <member name="T:Moq.Language.Flow.ISetupGetter`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2819 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2820 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2821 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2822 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2823 <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2824 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2825 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2826 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2827 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2828 <member name="T:Moq.Language.IReturnsGetter`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2829 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2830 Defines the <c>Returns</c> verb for property get setups.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2831 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2832 <typeparam name="TMock">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2833 <typeparam name="TProperty">Type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2834 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2835 <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2836 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2837 Specifies the value to return.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2838 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2839 <param name="value">The value to return, or <see langword="null"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2840 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2841 Return a <c>true</c> value from the property getter call:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2842 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2843 mock.SetupGet(x => x.Suspended)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2844 .Returns(true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2845 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2846 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2847 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2848 <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2849 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2850 Specifies a function that will calculate the value to return for the property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2851 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2852 <param name="valueFunction">The function that will calculate the return value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2853 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2854 Return a calculated value when the property is retrieved:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2855 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2856 mock.SetupGet(x => x.Suspended)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2857 .Returns(() => returnValues[0]);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2858 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2859 The lambda expression to retrieve the return value is lazy-executed,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2860 meaning that its value may change depending on the moment the property
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2861 is retrieved and the value the <c>returnValues</c> array has at
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2862 that moment.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2863 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2864 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2865 <member name="T:Moq.Language.Flow.IReturnsResult`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2866 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2867 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2868 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2869 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2870 <member name="T:Moq.Language.ICallback">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2871 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2872 Defines the <c>Callback</c> verb and overloads.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2873 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2874 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2875 <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2876 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2877 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2878 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2879 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2880 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2881 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2882 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2883 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2884 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2885 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2886 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2887 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2888 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2889 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2890 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2891 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2892 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2893 .Callback((string arg1, string arg2) =&gt; Console.WriteLine(arg1 + arg2));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2894 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2895 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2896 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2897 <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2898 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2899 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2900 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2901 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2902 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2903 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2904 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2905 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2906 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2907 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2908 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2909 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2910 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2911 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2912 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2913 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2914 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2915 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2916 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2917 .Callback((string arg1, string arg2, string arg3) =&gt; Console.WriteLine(arg1 + arg2 + arg3));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2918 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2919 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2920 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2921 <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2922 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2923 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2924 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2925 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2926 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2927 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2928 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2929 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2930 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2931 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2932 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2933 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2934 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2935 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2936 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2937 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2938 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2939 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2940 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2941 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2942 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2943 .Callback((string arg1, string arg2, string arg3, string arg4) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2944 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2945 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2946 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2947 <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2948 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2949 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2950 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2951 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2952 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2953 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2954 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2955 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2956 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2957 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2958 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2959 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2960 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2961 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2962 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2963 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2964 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2965 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2966 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2967 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2968 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2969 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2970 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2971 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2972 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2973 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2974 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2975 <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2976 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2977 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2978 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2979 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2980 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2981 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2982 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2983 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2984 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2985 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2986 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2987 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2988 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2989 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2990 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2991 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2992 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2993 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2994 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2995 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2996 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2997 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2998 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
2999 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3000 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3001 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3002 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3003 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3004 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3005 <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3006 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3007 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3008 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3009 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3010 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3011 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3012 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3013 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3014 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3015 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3016 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3017 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3018 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3019 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3020 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3021 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3022 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3023 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3024 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3025 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3026 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3027 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3028 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3029 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3030 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3031 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3032 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3033 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3034 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3035 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3036 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3037 <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3038 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3039 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3040 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3041 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3042 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3043 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3044 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3045 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3046 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3047 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3048 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3049 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3050 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3051 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3052 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3053 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3054 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3055 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3056 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3057 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3058 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3059 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3060 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3061 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3062 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3063 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3064 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3065 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3066 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3067 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3068 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3069 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3070 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3071 <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3072 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3073 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3074 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3075 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3076 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3077 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3078 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3079 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3080 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3081 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3082 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3083 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3084 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3085 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3086 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3087 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3088 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3089 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3090 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3091 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3092 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3093 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3094 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3095 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3096 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3097 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3098 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3099 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3100 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3101 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3102 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3103 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3104 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3105 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3106 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3107 <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3108 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3109 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3110 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3111 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3112 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3113 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3114 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3115 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3116 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3117 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3118 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3119 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3120 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3121 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3122 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3123 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3124 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3125 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3126 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3127 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3128 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3129 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3130 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3131 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3132 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3133 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3134 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3135 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3136 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3137 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3138 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3139 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3140 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3141 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3142 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3143 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3144 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3145 <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3146 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3147 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3148 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3149 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3150 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3151 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3152 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3153 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3154 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3155 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3156 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3157 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3158 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3159 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3160 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3161 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3162 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3163 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3164 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3165 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3166 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3167 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3168 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3169 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3170 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3171 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3172 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3173 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3174 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3175 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3176 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3177 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3178 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3179 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3180 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3181 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3182 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3183 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3184 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3185 <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3186 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3187 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3188 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3189 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3190 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3191 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3192 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3193 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3194 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3195 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3196 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3197 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3198 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3199 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3200 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3201 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3202 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3203 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3204 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3205 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3206 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3207 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3208 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3209 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3210 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3211 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3212 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3213 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3214 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3215 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3216 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3217 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3218 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3219 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3220 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3221 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3222 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3223 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3224 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3225 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3226 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3227 <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3228 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3229 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3230 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3231 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3232 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3233 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3234 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3235 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3236 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3237 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3238 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3239 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3240 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3241 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3242 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3243 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3244 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3245 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3246 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3247 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3248 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3249 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3250 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3251 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3252 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3253 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3254 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3255 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3256 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3257 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3258 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3259 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3260 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3261 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3262 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3263 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3264 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3265 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3266 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3267 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3268 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3269 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3270 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3271 <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3272 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3273 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3274 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3275 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3276 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3277 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3278 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3279 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3280 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3281 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3282 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3283 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3284 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3285 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3286 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3287 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3288 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3289 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3290 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3291 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3292 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3293 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3294 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3295 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3296 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3297 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3298 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3299 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3300 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3301 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3302 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3303 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3304 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3305 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3306 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3307 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3308 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3309 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3310 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3311 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3312 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3313 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3314 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3315 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3316 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3317 <member name="M:Moq.Language.ICallback.Callback``15(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3318 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3319 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3320 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3321 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3322 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3323 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3324 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3325 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3326 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3327 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3328 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3329 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3330 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3331 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3332 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3333 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3334 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3335 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3336 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3337 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3338 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3339 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3340 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3341 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3342 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3343 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3344 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3345 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3346 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3347 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3348 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3349 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3350 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3351 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3352 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3353 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3354 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3355 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3356 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3357 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3358 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3359 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3360 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3361 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3362 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3363 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3364 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3365 <member name="M:Moq.Language.ICallback.Callback``16(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13,``14,``15})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3366 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3367 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3368 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3369 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3370 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3371 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3372 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3373 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3374 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3375 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3376 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3377 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3378 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3379 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3380 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3381 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3382 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3383 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3384 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3385 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3386 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3387 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3388 Invokes the given callback with the concrete invocation arguments values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3389 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3390 Notice how the specific arguments are retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3391 them as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3392 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3393 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3394 mock.Setup(x =&gt; x.Execute(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3395 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3396 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3397 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3398 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3399 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3400 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3401 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3402 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3403 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3404 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3405 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3406 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3407 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3408 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3409 It.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3410 It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3411 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7, string arg8, string arg9, string arg10, string arg11, string arg12, string arg13, string arg14, string arg15, string arg16) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10 + arg11 + arg12 + arg13 + arg14 + arg15 + arg16));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3412 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3413 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3414 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3415 <member name="M:Moq.Language.ICallback.Callback(System.Action)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3416 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3417 Specifies a callback to invoke when the method is called.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3418 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3419 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3420 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3421 The following example specifies a callback to set a boolean
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3422 value that can be used later:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3423 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3424 var called = false;
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3425 mock.Setup(x => x.Execute())
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3426 .Callback(() => called = true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3427 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3428 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3429 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3430 <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3431 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3432 Specifies a callback to invoke when the method is called that receives the original arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3433 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3434 <typeparam name="T">The argument type of the invoked method.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3435 <param name="action">The callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3436 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3437 Invokes the given callback with the concrete invocation argument value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3438 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3439 Notice how the specific string argument is retrieved by simply declaring
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3440 it as part of the lambda expression for the callback:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3441 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3442 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3443 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3444 .Callback((string command) => Console.WriteLine(command));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3445 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3446 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3447 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3448 <member name="T:Moq.Language.ISetupConditionResult`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3449 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3450 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3451 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3452 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3453 <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3454 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3455 The expectation will be considered only in the former condition.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3456 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3457 <param name="expression"></param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3458 <returns></returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3459 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3460 <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3461 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3462 The expectation will be considered only in the former condition.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3463 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3464 <typeparam name="TResult"></typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3465 <param name="expression"></param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3466 <returns></returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3467 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3468 <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3469 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3470 Setups the get.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3471 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3472 <typeparam name="TProperty">The type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3473 <param name="expression">The expression.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3474 <returns></returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3475 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3476 <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3477 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3478 Setups the set.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3479 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3480 <typeparam name="TProperty">The type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3481 <param name="setterExpression">The setter expression.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3482 <returns></returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3483 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3484 <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3485 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3486 Setups the set.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3487 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3488 <param name="setterExpression">The setter expression.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3489 <returns></returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3490 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3491 <member name="T:Moq.MockRepository">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3492 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3493 Utility repository class to use to construct multiple
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3494 mocks when consistent verification is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3495 desired for all of them.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3496 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3497 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3498 If multiple mocks will be created during a test, passing
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3499 the desired <see cref="T:Moq.MockBehavior"/> (if different than the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3500 <see cref="F:Moq.MockBehavior.Default"/> or the one
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3501 passed to the repository constructor) and later verifying each
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3502 mock can become repetitive and tedious.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3503 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3504 This repository class helps in that scenario by providing a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3505 simplified creation of multiple mocks with a default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3506 <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3507 <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3508 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3509 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3510 <example group="repository">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3511 The following is a straightforward example on how to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3512 create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3513 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3514 var repository = new MockRepository(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3515
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3516 var foo = repository.Create&lt;IFoo&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3517 var bar = repository.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3518
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3519 // no need to call Verifiable() on the setup
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3520 // as we'll be validating all of them anyway.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3521 foo.Setup(f =&gt; f.Do());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3522 bar.Setup(b =&gt; b.Redo());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3523
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3524 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3525
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3526 repository.VerifyAll();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3527 // At this point all setups are already checked
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3528 // and an optional MockException might be thrown.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3529 // Note also that because the mocks are strict, any invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3530 // that doesn't have a matching setup will also throw a MockException.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3531 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3532 The following examples shows how to setup the repository
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3533 to create loose mocks and later verify only verifiable setups:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3534 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3535 var repository = new MockRepository(MockBehavior.Loose);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3536
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3537 var foo = repository.Create&lt;IFoo&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3538 var bar = repository.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3539
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3540 // this setup will be verified when we verify the repository
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3541 foo.Setup(f =&gt; f.Do()).Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3542
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3543 // this setup will NOT be verified
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3544 foo.Setup(f =&gt; f.Calculate());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3545
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3546 // this setup will be verified when we verify the repository
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3547 bar.Setup(b =&gt; b.Redo()).Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3548
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3549 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3550 // note that because the mocks are Loose, members
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3551 // called in the interfaces for which no matching
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3552 // setups exist will NOT throw exceptions,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3553 // and will rather return default values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3554
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3555 repository.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3556 // At this point verifiable setups are already checked
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3557 // and an optional MockException might be thrown.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3558 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3559 The following examples shows how to setup the repository with a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3560 default strict behavior, overriding that default for a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3561 specific mock:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3562 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3563 var repository = new MockRepository(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3564
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3565 // this particular one we want loose
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3566 var foo = repository.Create&lt;IFoo&gt;(MockBehavior.Loose);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3567 var bar = repository.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3568
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3569 // specify setups
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3570
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3571 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3572
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3573 repository.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3574 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3575 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3576 <seealso cref="T:Moq.MockBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3577 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3578 <member name="T:Moq.MockFactory">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3579 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3580 Utility factory class to use to construct multiple
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3581 mocks when consistent verification is
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3582 desired for all of them.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3583 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3584 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3585 If multiple mocks will be created during a test, passing
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3586 the desired <see cref="T:Moq.MockBehavior"/> (if different than the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3587 <see cref="F:Moq.MockBehavior.Default"/> or the one
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3588 passed to the factory constructor) and later verifying each
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3589 mock can become repetitive and tedious.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3590 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3591 This factory class helps in that scenario by providing a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3592 simplified creation of multiple mocks with a default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3593 <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3594 <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3595 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3596 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3597 <example group="factory">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3598 The following is a straightforward example on how to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3599 create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3600 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3601 var factory = new MockFactory(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3602
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3603 var foo = factory.Create&lt;IFoo&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3604 var bar = factory.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3605
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3606 // no need to call Verifiable() on the setup
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3607 // as we'll be validating all of them anyway.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3608 foo.Setup(f =&gt; f.Do());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3609 bar.Setup(b =&gt; b.Redo());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3610
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3611 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3612
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3613 factory.VerifyAll();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3614 // At this point all setups are already checked
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3615 // and an optional MockException might be thrown.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3616 // Note also that because the mocks are strict, any invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3617 // that doesn't have a matching setup will also throw a MockException.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3618 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3619 The following examples shows how to setup the factory
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3620 to create loose mocks and later verify only verifiable setups:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3621 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3622 var factory = new MockFactory(MockBehavior.Loose);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3623
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3624 var foo = factory.Create&lt;IFoo&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3625 var bar = factory.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3626
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3627 // this setup will be verified when we verify the factory
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3628 foo.Setup(f =&gt; f.Do()).Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3629
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3630 // this setup will NOT be verified
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3631 foo.Setup(f =&gt; f.Calculate());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3632
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3633 // this setup will be verified when we verify the factory
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3634 bar.Setup(b =&gt; b.Redo()).Verifiable();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3635
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3636 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3637 // note that because the mocks are Loose, members
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3638 // called in the interfaces for which no matching
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3639 // setups exist will NOT throw exceptions,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3640 // and will rather return default values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3641
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3642 factory.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3643 // At this point verifiable setups are already checked
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3644 // and an optional MockException might be thrown.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3645 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3646 The following examples shows how to setup the factory with a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3647 default strict behavior, overriding that default for a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3648 specific mock:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3649 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3650 var factory = new MockFactory(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3651
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3652 // this particular one we want loose
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3653 var foo = factory.Create&lt;IFoo&gt;(MockBehavior.Loose);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3654 var bar = factory.Create&lt;IBar&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3655
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3656 // specify setups
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3657
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3658 // exercise the mocks here
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3659
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3660 factory.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3661 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3662 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3663 <seealso cref="T:Moq.MockBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3664 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3665 <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3666 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3667 Initializes the factory with the given <paramref name="defaultBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3668 for newly created mocks from the factory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3669 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3670 <param name="defaultBehavior">The behavior to use for mocks created
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3671 using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3672 by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3673 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3674 <member name="M:Moq.MockFactory.Create``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3675 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3676 Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3677 specified at factory construction time.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3678 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3679 <typeparam name="T">Type to mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3680 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3681 <example ignore="true">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3682 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3683 var factory = new MockFactory(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3684
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3685 var foo = factory.Create&lt;IFoo&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3686 // use mock on tests
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3687
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3688 factory.VerifyAll();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3689 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3690 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3691 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3692 <member name="M:Moq.MockFactory.Create``1(System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3693 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3694 Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3695 specified at factory construction time and with the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3696 the given constructor arguments for the class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3697 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3698 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3699 The mock will try to find the best match constructor given the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3700 constructor arguments, and invoke that to initialize the instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3701 This applies only to classes, not interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3702 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3703 <typeparam name="T">Type to mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3704 <param name="args">Constructor arguments for mocked classes.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3705 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3706 <example ignore="true">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3707 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3708 var factory = new MockFactory(MockBehavior.Default);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3709
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3710 var mock = factory.Create&lt;MyBase&gt;("Foo", 25, true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3711 // use mock on tests
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3712
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3713 factory.Verify();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3714 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3715 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3716 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3717 <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3718 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3719 Creates a new mock with the given <paramref name="behavior"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3720 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3721 <typeparam name="T">Type to mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3722 <param name="behavior">Behavior to use for the mock, which overrides
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3723 the default behavior specified at factory construction time.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3724 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3725 <example group="factory">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3726 The following example shows how to create a mock with a different
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3727 behavior to that specified as the default for the factory:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3728 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3729 var factory = new MockFactory(MockBehavior.Strict);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3730
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3731 var foo = factory.Create&lt;IFoo&gt;(MockBehavior.Loose);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3732 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3733 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3734 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3735 <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3736 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3737 Creates a new mock with the given <paramref name="behavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3738 and with the the given constructor arguments for the class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3739 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3740 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3741 The mock will try to find the best match constructor given the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3742 constructor arguments, and invoke that to initialize the instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3743 This applies only to classes, not interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3744 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3745 <typeparam name="T">Type to mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3746 <param name="behavior">Behavior to use for the mock, which overrides
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3747 the default behavior specified at factory construction time.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3748 <param name="args">Constructor arguments for mocked classes.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3749 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3750 <example group="factory">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3751 The following example shows how to create a mock with a different
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3752 behavior to that specified as the default for the factory, passing
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3753 constructor arguments:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3754 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3755 var factory = new MockFactory(MockBehavior.Default);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3756
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3757 var mock = factory.Create&lt;MyBase&gt;(MockBehavior.Strict, "Foo", 25, true);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3758 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3759 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3760 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3761 <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3762 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3763 Implements creation of a new mock within the factory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3764 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3765 <typeparam name="T">Type to mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3766 <param name="behavior">The behavior for the new mock.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3767 <param name="args">Optional arguments for the construction of the mock.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3768 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3769 <member name="M:Moq.MockFactory.Verify">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3770 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3771 Verifies all verifiable expectations on all mocks created
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3772 by this factory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3773 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3774 <seealso cref="M:Moq.Mock.Verify"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3775 <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3776 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3777 <member name="M:Moq.MockFactory.VerifyAll">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3778 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3779 Verifies all verifiable expectations on all mocks created
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3780 by this factory.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3781 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3782 <seealso cref="M:Moq.Mock.Verify"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3783 <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3784 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3785 <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3786 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3787 Invokes <paramref name="verifyAction"/> for each mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3788 in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3789 <see cref="T:Moq.MockVerificationException"/> that might be
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3790 thrown from the action.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3791 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3792 <param name="verifyAction">The action to execute against
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3793 each mock.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3794 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3795 <member name="P:Moq.MockFactory.CallBase">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3796 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3797 Whether the base member virtual implementation will be called
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3798 for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3799 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3800 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3801 <member name="P:Moq.MockFactory.DefaultValue">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3802 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3803 Specifies the behavior to use when returning default values for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3804 unexpected invocations on loose mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3805 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3806 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3807 <member name="P:Moq.MockFactory.Mocks">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3808 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3809 Gets the mocks that have been created by this factory and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3810 that will get verified together.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3811 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3812 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3813 <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3814 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3815 Initializes the repository with the given <paramref name="defaultBehavior"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3816 for newly created mocks from the repository.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3817 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3818 <param name="defaultBehavior">The behavior to use for mocks created
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3819 using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3820 by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3821 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3822 <member name="M:Moq.MockRepository.Of``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3823 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3824 Access the universe of mocks of the given type, to retrieve those
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3825 that behave according to the LINQ query specification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3826 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3827 <typeparam name="T">The type of the mocked object to query.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3828 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3829 <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3830 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3831 Access the universe of mocks of the given type, to retrieve those
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3832 that behave according to the LINQ query specification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3833 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3834 <param name="specification">The predicate with the setup expressions.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3835 <typeparam name="T">The type of the mocked object to query.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3836 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3837 <member name="M:Moq.MockRepository.OneOf``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3838 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3839 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3840 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3841 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3842 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3843 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3844 <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3845 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3846 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3847 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3848 <param name="specification">The predicate with the setup expressions.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3849 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3850 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3851 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3852 <member name="M:Moq.MockRepository.CreateMockQuery``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3853 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3854 Creates the mock query with the underlying queriable implementation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3855 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3856 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3857 <member name="M:Moq.MockRepository.CreateQueryable``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3858 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3859 Wraps the enumerator inside a queryable.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3860 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3861 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3862 <member name="M:Moq.MockRepository.CreateMocks``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3863 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3864 Method that is turned into the actual call from .Query{T}, to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3865 transform the queryable query into a normal enumerable query.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3866 This method is never used directly by consumers.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3867 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3868 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3869 <member name="T:Moq.Language.Flow.ISetup`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3870 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3871 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3872 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3873 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3874 <member name="T:Moq.Protected.ProtectedExtension">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3875 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3876 Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3877 allowing setups to be set for protected members by using their
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3878 name as a string, rather than strong-typing them which is not possible
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3879 due to their visibility.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3880 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3881 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3882 <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3883 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3884 Enable protected setups for the mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3885 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3886 <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3887 <param name="mock">The mock to set the protected setups on.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3888 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3889 <member name="T:Moq.MockDefaultValueProvider">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3890 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3891 A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3892 for non-mockeable types, and mocks for all other types (interfaces and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3893 non-sealed classes) that can be mocked.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3894 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3895 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3896 <member name="T:Moq.EmptyDefaultValueProvider">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3897 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3898 A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3899 for invocations that do not have setups or return values, with loose mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3900 This is the default behavior for a mock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3901 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3902 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3903 <member name="T:Moq.IDefaultValueProvider">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3904 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3905 Interface to be implemented by classes that determine the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3906 default value of non-expected invocations.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3907 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3908 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3909 <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3910 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3911 Defines the default value to return in all the methods returning <typeparamref name="T"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3912 </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3913 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3914 <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3915 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3916 Provides a value for the given member and arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3917 </summary><param name="member">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3918 The member to provide a default value for.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3919 </param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3920 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3921 <member name="T:Moq.Interceptor">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3922 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3923 Implements the actual interception and method invocation for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3924 all mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3925 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3926 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3927 <member name="M:Moq.Interceptor.GetEventFromName(System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3928 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3929 Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3930 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3931 <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3932 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3933 <member name="M:Moq.Interceptor.GetAncestorTypes(System.Type)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3934 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3935 Given a type return all of its ancestors, both types and interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3936 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3937 <param name="initialType">The type to find immediate ancestors of</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3938 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3939 <member name="T:Moq.IMocked`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3940 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3941 Implemented by all generated mock object instances.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3942 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3943 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3944 <member name="T:Moq.IMocked">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3945 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3946 Implemented by all generated mock object instances.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3947 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3948 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3949 <member name="P:Moq.IMocked.Mock">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3950 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3951 Reference the Mock that contains this as the <c>mock.Object</c> value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3952 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3953 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3954 <member name="P:Moq.IMocked`1.Mock">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3955 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3956 Reference the Mock that contains this as the <c>mock.Object</c> value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3957 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3958 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3959 <member name="T:Moq.FluentMockContext">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3960 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3961 Tracks the current mock and interception context.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3962 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3963 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3964 <member name="P:Moq.FluentMockContext.IsActive">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3965 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3966 Having an active fluent mock context means that the invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3967 is being performed in "trial" mode, just to gather the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3968 target method and arguments that need to be matched later
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3969 when the actual invocation is made.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3970 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3971 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3972 <member name="T:Moq.ExpressionStringBuilder">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3973 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3974 The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3975 string representation for the failure message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3976 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3977 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3978 <member name="T:Moq.DefaultValue">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3979 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3980 Determines the way default values are generated
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3981 calculated for loose mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3982 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3983 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3984 <member name="F:Moq.DefaultValue.Empty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3985 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3986 Default behavior, which generates empty values for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3987 value types (i.e. default(int)), empty array and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3988 enumerables, and nulls for all other reference types.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3989 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3990 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3991 <member name="F:Moq.DefaultValue.Mock">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3992 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3993 Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3994 is null, replaces this value with a mock (if the type
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3995 can be mocked).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3996 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3997 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3998 For sealed classes, a null value will be generated.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
3999 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4000 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4001 <member name="T:Moq.Properties.Resources">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4002 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4003 A strongly-typed resource class, for looking up localized strings, etc.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4004 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4005 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4006 <member name="P:Moq.Properties.Resources.ResourceManager">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4007 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4008 Returns the cached ResourceManager instance used by this class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4009 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4010 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4011 <member name="P:Moq.Properties.Resources.Culture">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4012 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4013 Overrides the current thread's CurrentUICulture property for all
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4014 resource lookups using this strongly typed resource class.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4015 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4016 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4017 <member name="P:Moq.Properties.Resources.AlreadyInitialized">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4018 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4019 Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4020 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4021 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4022 <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4023 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4024 Looks up a localized string similar to Value cannot be an empty string..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4025 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4026 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4027 <member name="P:Moq.Properties.Resources.AsMustBeInterface">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4028 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4029 Looks up a localized string similar to Can only add interfaces to the mock..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4030 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4031 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4032 <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4033 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4034 Looks up a localized string similar to Can&apos;t set return value for void method {0}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4035 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4036 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4037 <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4038 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4039 Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4040 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4041 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4042 <member name="P:Moq.Properties.Resources.ConstructorNotFound">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4043 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4044 Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4045 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4046 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4047 <member name="P:Moq.Properties.Resources.EventNofFound">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4048 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4049 Looks up a localized string similar to Could not locate event for attach or detach method {0}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4050 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4051 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4052 <member name="P:Moq.Properties.Resources.FieldsNotSupported">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4053 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4054 Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4055 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4056 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4057 <member name="P:Moq.Properties.Resources.InvalidMockClass">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4058 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4059 Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4060 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4061 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4062 <member name="P:Moq.Properties.Resources.InvalidMockGetType">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4063 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4064 Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it&apos;s not the main type of the mock or any of its additional interfaces.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4065 Please cast the argument to one of the supported types: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4066 Remember that there&apos;s no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4067 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4068 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4069 <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4070 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4071 Looks up a localized string similar to The equals (&quot;==&quot; or &quot;=&quot; in VB) and the conditional &apos;and&apos; (&quot;&amp;&amp;&quot; or &quot;AndAlso&quot; in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4072 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4073 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4074 <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4075 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4076 Looks up a localized string similar to LINQ method &apos;{0}&apos; not supported..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4077 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4078 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4079 <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4080 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4081 Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4082 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4083 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4084 <member name="P:Moq.Properties.Resources.MemberMissing">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4085 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4086 Looks up a localized string similar to Member {0}.{1} does not exist..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4087 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4088 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4089 <member name="P:Moq.Properties.Resources.MethodIsPublic">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4090 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4091 Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4092 mock.Setup(x =&gt; x.{1}());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4093 .
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4094 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4095 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4096 <member name="P:Moq.Properties.Resources.MockExceptionMessage">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4097 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4098 Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4099 {2}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4100 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4101 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4102 <member name="P:Moq.Properties.Resources.MoreThanNCalls">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4103 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4104 Looks up a localized string similar to Expected only {0} calls to {1}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4105 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4106 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4107 <member name="P:Moq.Properties.Resources.MoreThanOneCall">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4108 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4109 Looks up a localized string similar to Expected only one call to {0}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4110 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4111 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4112 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4113 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4114 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4115 Expected invocation on the mock at least {2} times, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4116 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4117 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4118 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4119 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4120 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4121 Expected invocation on the mock at least once, but was never performed: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4122 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4123 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4124 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4125 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4126 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4127 Expected invocation on the mock at most {3} times, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4128 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4129 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4130 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4131 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4132 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4133 Expected invocation on the mock at most once, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4134 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4135 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4136 <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4137 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4138 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4139 Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4140 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4141 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4142 <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4143 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4144 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4145 Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4146 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4147 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4148 <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4149 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4150 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4151 Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4152 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4153 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4154 <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4155 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4156 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4157 Expected invocation on the mock should never have been performed, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4158 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4159 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4160 <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4161 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4162 Looks up a localized string similar to {0}
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4163 Expected invocation on the mock once, but was {4} times: {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4164 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4165 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4166 <member name="P:Moq.Properties.Resources.NoSetup">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4167 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4168 Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4169 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4170 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4171 <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4172 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4173 Looks up a localized string similar to Object instance was not created by Moq..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4174 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4175 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4176 <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4177 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4178 Looks up a localized string similar to Out expression must evaluate to a constant value..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4179 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4180 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4181 <member name="P:Moq.Properties.Resources.PropertyGetNotFound">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4182 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4183 Looks up a localized string similar to Property {0}.{1} does not have a getter..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4184 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4185 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4186 <member name="P:Moq.Properties.Resources.PropertyMissing">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4187 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4188 Looks up a localized string similar to Property {0}.{1} does not exist..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4189 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4190 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4191 <member name="P:Moq.Properties.Resources.PropertyNotReadable">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4192 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4193 Looks up a localized string similar to Property {0}.{1} is write-only..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4194 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4195 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4196 <member name="P:Moq.Properties.Resources.PropertyNotWritable">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4197 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4198 Looks up a localized string similar to Property {0}.{1} is read-only..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4199 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4200 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4201 <member name="P:Moq.Properties.Resources.PropertySetNotFound">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4202 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4203 Looks up a localized string similar to Property {0}.{1} does not have a setter..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4204 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4205 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4206 <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4207 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4208 Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4209 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4210 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4211 <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4212 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4213 Looks up a localized string similar to Ref expression must evaluate to a constant value..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4214 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4215 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4216 <member name="P:Moq.Properties.Resources.ReturnValueRequired">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4217 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4218 Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4219 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4220 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4221 <member name="P:Moq.Properties.Resources.SetupLambda">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4222 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4223 Looks up a localized string similar to A lambda expression is expected as the argument to It.Is&lt;T&gt;..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4224 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4225 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4226 <member name="P:Moq.Properties.Resources.SetupNever">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4227 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4228 Looks up a localized string similar to Invocation {0} should not have been made..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4229 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4230 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4231 <member name="P:Moq.Properties.Resources.SetupNotMethod">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4232 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4233 Looks up a localized string similar to Expression is not a method invocation: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4234 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4235 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4236 <member name="P:Moq.Properties.Resources.SetupNotProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4237 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4238 Looks up a localized string similar to Expression is not a property access: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4239 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4240 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4241 <member name="P:Moq.Properties.Resources.SetupNotSetter">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4242 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4243 Looks up a localized string similar to Expression is not a property setter invocation..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4244 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4245 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4246 <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4247 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4248 Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4249 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4250 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4251 <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4252 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4253 Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4254 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4255 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4256 <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4257 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4258 Looks up a localized string similar to Type {0} does not implement required interface {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4259 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4260 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4261 <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4262 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4263 Looks up a localized string similar to Type {0} does not from required type {1}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4264 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4265 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4266 <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4267 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4268 Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4269 mock.Setup(x =&gt; x.{1}).Returns(value);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4270 mock.SetupGet(x =&gt; x.{1}).Returns(value); //equivalent to previous one
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4271 mock.SetupSet(x =&gt; x.{1}).Callback(callbackDelegate);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4272 .
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4273 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4274 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4275 <member name="P:Moq.Properties.Resources.UnsupportedExpression">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4276 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4277 Looks up a localized string similar to Unsupported expression: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4278 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4279 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4280 <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4281 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4282 Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4283 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4284 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4285 <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4286 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4287 Looks up a localized string similar to Expression contains intermediate property access {0}.{1} which is of type {2} and cannot be mocked. Unsupported expression {3}..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4288 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4289 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4290 <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4291 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4292 Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4293 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4294 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4295 <member name="P:Moq.Properties.Resources.UnsupportedMember">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4296 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4297 Looks up a localized string similar to Member {0} is not supported for protected mocking..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4298 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4299 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4300 <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4301 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4302 Looks up a localized string similar to Setter expression can only use static custom matchers..
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4303 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4304 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4305 <member name="P:Moq.Properties.Resources.VerficationFailed">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4306 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4307 Looks up a localized string similar to The following setups were not matched:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4308 {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4309 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4310 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4311 <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4312 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4313 Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4314 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4315 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4316 <member name="T:Moq.MockExtensions">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4317 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4318 Provides additional methods on mocks.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4319 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4320 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4321 Provided as extension methods as they confuse the compiler
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4322 with the overloads taking Action.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4323 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4324 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4325 <member name="M:Moq.MockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4326 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4327 Specifies a setup on the mocked type for a call to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4328 to a property setter, regardless of its value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4329 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4330 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4331 If more than one setup is set for the same property setter,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4332 the latest one wins and is the one that will be executed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4333 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4334 <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4335 <typeparam name="T">Type of the mock.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4336 <param name="mock">The target mock for the setup.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4337 <param name="expression">Lambda expression that specifies the property setter.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4338 <example group="setups">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4339 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4340 mock.SetupSet(x =&gt; x.Suspended);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4341 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4342 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4343 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4344 This method is not legacy, but must be on an extension method to avoid
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4345 confusing the compiler with the new Action syntax.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4346 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4347 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4348 <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4349 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4350 Verifies that a property has been set on the mock, regarless of its value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4351 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4352 <example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4353 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4354 and later we want to verify that a given invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4355 with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4356 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4357 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4358 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4359 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4360 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4361 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4362 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4363 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4364 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4365 <param name="expression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4366 <param name="mock">The mock instance.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4367 <typeparam name="T">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4368 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4369 be inferred from the expression's return type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4370 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4371 <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4372 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4373 Verifies that a property has been set on the mock, specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4374 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4375 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4376 <example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4377 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4378 and later we want to verify that a given invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4379 with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4380 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4381 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4382 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4383 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4384 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4385 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4386 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4387 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4388 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4389 <param name="expression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4390 <param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4391 <param name="mock">The mock instance.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4392 <typeparam name="T">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4393 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4394 be inferred from the expression's return type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4395 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4396 <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4397 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4398 Verifies that a property has been set on the mock, regardless
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4399 of the value but only the specified number of times.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4400 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4401 <example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4402 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4403 and later we want to verify that a given invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4404 with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4405 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4406 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4407 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4408 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4409 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4410 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4411 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4412 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4413 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4414 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4415 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4416 <param name="mock">The mock instance.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4417 <typeparam name="T">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4418 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4419 <param name="expression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4420 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4421 be inferred from the expression's return type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4422 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4423 <member name="M:Moq.MockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4424 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4425 Verifies that a property has been set on the mock, regardless
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4426 of the value but only the specified number of times, and specifying a failure
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4427 error message.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4428 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4429 <example group="verification">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4430 This example assumes that the mock has been used,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4431 and later we want to verify that a given invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4432 with specific parameters was performed:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4433 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4434 var mock = new Mock&lt;IWarehouse&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4435 // exercise mock
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4436 //...
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4437 // Will throw if the test code didn't set the IsClosed property.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4438 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4439 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4440 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4441 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4442 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4443 <paramref name="times"/>.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4444 <param name="mock">The mock instance.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4445 <typeparam name="T">Mocked type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4446 <param name="times">The number of times a method is allowed to be called.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4447 <param name="failMessage">Message to show if verification fails.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4448 <param name="expression">Expression to verify.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4449 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4450 be inferred from the expression's return type.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4451 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4452 <member name="T:Moq.MockException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4453 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4454 Exception thrown by mocks when setups are not matched,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4455 the mock is not properly setup, etc.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4456 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4457 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4458 A distinct exception type is provided so that exceptions
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4459 thrown by the mock can be differentiated in tests that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4460 expect other exceptions to be thrown (i.e. ArgumentException).
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4461 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4462 Richer exception hierarchy/types are not provided as
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4463 tests typically should <b>not</b> catch or expect exceptions
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4464 from the mocks. These are typically the result of changes
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4465 in the tested class or its collaborators implementation, and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4466 result in fixes in the mock setup so that they dissapear and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4467 allow the test to pass.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4468 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4469 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4470 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4471 <member name="T:Moq.MockException.ExceptionReason">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4472 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4473 Made internal as it's of no use for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4474 consumers, but it's important for
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4475 our own tests.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4476 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4477 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4478 <member name="T:Moq.MockVerificationException">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4479 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4480 Used by the mock factory to accumulate verification
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4481 failures.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4482 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4483 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4484 <member name="T:Moq.Language.ISetupSequentialResult`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4485 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4486 Language for ReturnSequence
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4487 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4488 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4489 <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4490 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4491 Returns value
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4492 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4493 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4494 <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4495 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4496 Throws an exception
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4497 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4498 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4499 <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4500 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4501 Throws an exception
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4502 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4503 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4504 <member name="T:Moq.Range">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4505 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4506 Kind of range to use in a filter specified through
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4507 <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4508 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4509 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4510 <member name="F:Moq.Range.Inclusive">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4511 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4512 The range includes the <c>to</c> and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4513 <c>from</c> values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4514 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4515 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4516 <member name="F:Moq.Range.Exclusive">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4517 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4518 The range does not include the <c>to</c> and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4519 <c>from</c> values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4520 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4521 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4522 <member name="T:Moq.MockLegacyExtensions">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4523 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4524 Provides legacy API members as extensions so that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4525 existing code continues to compile, but new code
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4526 doesn't see then.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4527 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4528 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4529 <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4530 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4531 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4532 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4533 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4534 <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4535 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4536 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4537 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4538 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4539 <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4540 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4541 Obsolete.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4542 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4543 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4544 <member name="F:Moq.Linq.FluentMockVisitor.isFirst">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4545 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4546 The first method call or member access will be the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4547 last segment of the expression (depth-first traversal),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4548 which is the one we have to Setup rather than FluentMock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4549 And the last one is the one we have to Mock.Get rather
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4550 than FluentMock.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4551 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4552 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4553 <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4554 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4555 Casts the expression to a lambda expression, removing
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4556 a cast if there's any.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4557 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4558 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4559 <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4560 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4561 Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4562 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4563 <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4564 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4565 <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4566 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4567 Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4568 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4569 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4570 <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4571 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4572 Checks whether the body of the lambda expression is a property access.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4573 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4574 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4575 <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4576 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4577 Checks whether the expression is a property access.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4578 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4579 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4580 <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4581 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4582 Checks whether the body of the lambda expression is a property indexer, which is true
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4583 when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4584 <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4585 equal to <see langword="true"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4586 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4587 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4588 <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4589 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4590 Checks whether the expression is a property indexer, which is true
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4591 when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4592 <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4593 equal to <see langword="true"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4594 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4595 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4596 <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4597 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4598 Creates an expression that casts the given expression to the <typeparamref name="T"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4599 type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4600 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4601 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4602 <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4603 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4604 TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4605 is fixed.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4606 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4607 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4608 <member name="T:Moq.Times">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4609 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4610 Defines the number of invocations allowed by a mocked method.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4611 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4612 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4613 <member name="M:Moq.Times.AtLeast(System.Int32)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4614 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4615 Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4616 </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4617 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4618 <member name="M:Moq.Times.AtLeastOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4619 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4620 Specifies that a mocked method should be invoked one time as minimum.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4621 </summary><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4622 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4623 <member name="M:Moq.Times.AtMost(System.Int32)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4624 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4625 Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4626 </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4627 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4628 <member name="M:Moq.Times.AtMostOnce">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4629 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4630 Specifies that a mocked method should be invoked one time as maximun.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4631 </summary><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4632 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4633 <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4634 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4635 Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4636 <paramref name="callCountTo"/> times.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4637 </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4638 The kind of range. See <see cref="T:Moq.Range"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4639 </param><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4640 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4641 <member name="M:Moq.Times.Exactly(System.Int32)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4642 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4643 Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4644 </summary><param name="callCount">The times that a method or property can be called.</param><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4645 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4646 <member name="M:Moq.Times.Never">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4647 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4648 Specifies that a mocked method should not be invoked.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4649 </summary><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4650 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4651 <member name="M:Moq.Times.Once">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4652 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4653 Specifies that a mocked method should be invoked exactly one time.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4654 </summary><returns>An object defining the allowed number of invocations.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4655 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4656 <member name="M:Moq.Times.Equals(System.Object)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4657 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4658 Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4659 </summary><param name="obj">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4660 The <see cref="T:System.Object"/> to compare with this instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4661 </param><returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4662 <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4663 </returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4664 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4665 <member name="M:Moq.Times.GetHashCode">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4666 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4667 Returns a hash code for this instance.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4668 </summary><returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4669 A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4670 </returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4671 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4672 <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4673 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4674 Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4675 </summary><param name="left">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4676 The first <see cref="T:Moq.Times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4677 </param><param name="right">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4678 The second <see cref="T:Moq.Times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4679 </param><returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4680 <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4681 </returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4682 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4683 <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4684 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4685 Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4686 </summary><param name="left">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4687 The first <see cref="T:Moq.Times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4688 </param><param name="right">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4689 The second <see cref="T:Moq.Times"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4690 </param><returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4691 <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4692 </returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4693 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4694 <member name="T:Moq.SequenceExtensions">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4695 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4696 Helper for sequencing return values in the same method.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4697 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4698 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4699 <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4700 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4701 Return a sequence of values, once per call.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4702 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4703 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4704 <member name="T:Moq.Linq.MockQueryable`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4705 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4706 A default implementation of IQueryable for use with QueryProvider
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4707 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4708 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4709 <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4710 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4711 The <paramref name="underlyingCreateMocks"/> is a
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4712 static method that returns an IQueryable of Mocks of T which is used to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4713 apply the linq specification to.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4714 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4715 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4716 <member name="T:Moq.Language.ICallbackSetter`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4717 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4718 Defines the <c>Callback</c> verb for property setter setups.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4719 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4720 <typeparam name="TProperty">Type of the property.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4721 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4722 <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4723 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4724 Specifies a callback to invoke when the property is set that receives the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4725 property value being set.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4726 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4727 <param name="action">Callback method to invoke.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4728 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4729 Invokes the given callback with the property value being set.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4730 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4731 mock.SetupSet(x => x.Suspended)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4732 .Callback((bool state) => Console.WriteLine(state));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4733 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4734 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4735 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4736 <member name="T:Moq.Language.Flow.ISetupSetter`2">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4737 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4738 Implements the fluent API.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4739 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4740 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4741 <member name="T:Moq.Protected.ItExpr">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4742 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4743 Allows the specification of a matching condition for an
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4744 argument in a protected member setup, rather than a specific
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4745 argument value. "ItExpr" refers to the argument being matched.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4746 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4747 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4748 <para>Use this variant of argument matching instead of
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4749 <see cref="T:Moq.It"/> for protected setups.</para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4750 This class allows the setup to match a method invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4751 with an arbitrary value, with a value in a specified range, or
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4752 even one that matches a given predicate, or null.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4753 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4754 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4755 <member name="M:Moq.Protected.ItExpr.IsNull``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4756 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4757 Matches a null value of the given <typeparamref name="TValue"/> type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4758 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4759 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4760 Required for protected mocks as the null value cannot be used
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4761 directly as it prevents proper method overload selection.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4762 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4763 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4764 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4765 // Throws an exception for a call to Remove with a null string value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4766 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4767 .Setup("Remove", ItExpr.IsNull&lt;string&gt;())
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4768 .Throws(new InvalidOperationException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4769 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4770 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4771 <typeparam name="TValue">Type of the value.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4772 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4773 <member name="M:Moq.Protected.ItExpr.IsAny``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4774 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4775 Matches any value of the given <typeparamref name="TValue"/> type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4776 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4777 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4778 Typically used when the actual argument value for a method
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4779 call is not relevant.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4780 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4781 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4782 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4783 // Throws an exception for a call to Remove with any string value.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4784 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4785 .Setup("Remove", ItExpr.IsAny&lt;string&gt;())
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4786 .Throws(new InvalidOperationException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4787 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4788 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4789 <typeparam name="TValue">Type of the value.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4790 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4791 <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4792 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4793 Matches any value that satisfies the given predicate.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4794 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4795 <typeparam name="TValue">Type of the argument to check.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4796 <param name="match">The predicate used to match the method argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4797 <remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4798 Allows the specification of a predicate to perform matching
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4799 of method call arguments.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4800 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4801 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4802 This example shows how to return the value <c>1</c> whenever the argument to the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4803 <c>Do</c> method is an even number.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4804 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4805 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4806 .Setup("Do", ItExpr.Is&lt;int&gt;(i =&gt; i % 2 == 0))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4807 .Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4808 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4809 This example shows how to throw an exception if the argument to the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4810 method is a negative number:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4811 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4812 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4813 .Setup("GetUser", ItExpr.Is&lt;int&gt;(i =&gt; i &lt; 0))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4814 .Throws(new ArgumentException());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4815 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4816 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4817 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4818 <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4819 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4820 Matches any value that is in the range specified.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4821 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4822 <typeparam name="TValue">Type of the argument to check.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4823 <param name="from">The lower bound of the range.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4824 <param name="to">The upper bound of the range.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4825 <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4826 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4827 The following example shows how to expect a method call
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4828 with an integer argument within the 0..100 range.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4829 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4830 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4831 .Setup("HasInventory",
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4832 ItExpr.IsAny&lt;string&gt;(),
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4833 ItExpr.IsInRange(0, 100, Range.Inclusive))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4834 .Returns(false);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4835 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4836 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4837 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4838 <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4839 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4840 Matches a string argument if it matches the given regular expression pattern.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4841 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4842 <param name="regex">The pattern to use to match the string argument value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4843 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4844 The following example shows how to expect a call to a method where the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4845 string argument matches the given regular expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4846 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4847 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4848 .Setup("Check", ItExpr.IsRegex("[a-z]+"))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4849 .Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4850 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4851 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4852 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4853 <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4854 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4855 Matches a string argument if it matches the given regular expression pattern.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4856 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4857 <param name="regex">The pattern to use to match the string argument value.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4858 <param name="options">The options used to interpret the pattern.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4859 <example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4860 The following example shows how to expect a call to a method where the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4861 string argument matches the given regular expression, in a case insensitive way:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4862 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4863 mock.Protected()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4864 .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4865 .Returns(1);
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4866 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4867 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4868 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4869 <member name="T:Moq.MockSequence">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4870 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4871 Helper class to setup a full trace between many mocks
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4872 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4873 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4874 <member name="M:Moq.MockSequence.#ctor">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4875 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4876 Initialize a trace setup
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4877 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4878 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4879 <member name="P:Moq.MockSequence.Cyclic">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4880 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4881 Allow sequence to be repeated
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4882 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4883 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4884 <member name="T:Moq.MockSequenceHelper">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4885 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4886 define nice api
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4887 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4888 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4889 <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4890 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4891 Perform an expectation in the trace.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4892 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4893 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4894 <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4895 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4896 Ensures the given <paramref name="value"/> is not null.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4897 Throws <see cref="T:System.ArgumentNullException"/> otherwise.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4898 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4899 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4900 <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4901 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4902 Ensures the given string <paramref name="value"/> is not null or empty.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4903 Throws <see cref="T:System.ArgumentNullException"/> in the first case, or
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4904 <see cref="T:System.ArgumentException"/> in the latter.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4905 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4906 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4907 <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4908 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4909 Checks an argument to ensure it is in the specified range including the edges.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4910 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4911 <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4912 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4913 <param name="reference">The expression containing the name of the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4914 <param name="value">The argument value to check.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4915 <param name="from">The minimun allowed value for the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4916 <param name="to">The maximun allowed value for the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4917 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4918 <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4919 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4920 Checks an argument to ensure it is in the specified range excluding the edges.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4921 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4922 <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4923 </typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4924 <param name="reference">The expression containing the name of the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4925 <param name="value">The argument value to check.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4926 <param name="from">The minimun allowed value for the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4927 <param name="to">The maximun allowed value for the argument.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4928 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4929 <member name="T:Moq.Match">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4930 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4931 Allows creation custom value matchers that can be used on setups and verification,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4932 completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4933 matching rules.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4934 </summary><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4935 See also <see cref="T:Moq.Match`1"/>.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4936 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4937 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4938 <member name="M:Moq.Match.Matcher``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4939 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4940 Provided for the sole purpose of rendering the delegate passed to the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4941 matcher constructor if no friendly render lambda is provided.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4942 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4943 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4944 <member name="M:Moq.Match.Create``1(System.Predicate{``0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4945 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4946 Initializes the match with the condition that
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4947 will be checked in order to match invocation
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4948 values.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4949 </summary><param name="condition">The condition to match against actual values.</param><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4950 <seealso cref="T:Moq.Match`1"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4951 </remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4952 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4953 <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4954 <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for=&quot;Match.Create{T}(condition,renderExpression&quot;]/*"/>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4955 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4956 <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4957 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4958 This method is used to set an expression as the last matcher invoked,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4959 which is used in the SetupSet to allow matchers in the prop = value
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4960 delegate expression. This delegate is executed in "fluent" mode in
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4961 order to capture the value being set, and construct the corresponding
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4962 methodcall.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4963 This is also used in the MatcherFactory for each argument expression.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4964 This method ensures that when we execute the delegate, we
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4965 also track the matcher that was invoked, so that when we create the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4966 methodcall we build the expression using it, rather than the null/default
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4967 value returned from the actual invocation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4968 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4969 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4970 <member name="T:Moq.Match`1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4971 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4972 Allows creation custom value matchers that can be used on setups and verification,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4973 completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4974 matching rules.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4975 </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4976 The argument matching is used to determine whether a concrete
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4977 invocation in the mock matches a given setup. This
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4978 matching mechanism is fully extensible.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4979 </remarks><example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4980 Creating a custom matcher is straightforward. You just need to create a method
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4981 that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4982 your matching condition and optional friendly render expression:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4983 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4984 [Matcher]
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4985 public Order IsBigOrder()
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4986 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4987 return Match&lt;Order&gt;.Create(
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4988 o =&gt; o.GrandTotal &gt;= 5000,
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4989 /* a friendly expression to render on failures */
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4990 () =&gt; IsBigOrder());
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4991 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4992 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4993 This method can be used in any mock setup invocation:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4994 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4995 mock.Setup(m =&gt; m.Submit(IsBigOrder()).Throws&lt;UnauthorizedAccessException&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4996 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4997 At runtime, Moq knows that the return value was a matcher (note that the method MUST be
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4998 annotated with the [Matcher] attribute in order to determine this) and
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
4999 evaluates your predicate with the actual value passed into your predicate.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5000 <para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5001 Another example might be a case where you want to match a lists of orders
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5002 that contains a particular one. You might create matcher like the following:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5003 </para>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5004 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5005 public static class Orders
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5006 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5007 [Matcher]
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5008 public static IEnumerable&lt;Order&gt; Contains(Order order)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5009 {
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5010 return Match&lt;IEnumerable&lt;Order&gt;&gt;.Create(orders =&gt; orders.Contains(order));
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5011 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5012 }
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5013 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5014 Now we can invoke this static method instead of an argument in an
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5015 invocation:
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5016 <code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5017 var order = new Order { ... };
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5018 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5019
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5020 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5021 .Throws&lt;ArgumentException&gt;();
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5022 </code>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5023 </example>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5024 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5025 <member name="T:Moq.Mocks">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5026 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5027 Allows querying the universe of mocks for those that behave
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5028 according to the LINQ query specification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5029 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5030 <devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5031 This entry-point into Linq to Mocks is the only one in the root Moq
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5032 namespace to ease discovery. But to get all the mocking extension
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5033 methods on Object, a using of Moq.Linq must be done, so that the
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5034 polluting of the intellisense for all objects is an explicit opt-in.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5035 </devdoc>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5036 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5037 <member name="M:Moq.Mocks.Of``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5038 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5039 Access the universe of mocks of the given type, to retrieve those
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5040 that behave according to the LINQ query specification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5041 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5042 <typeparam name="T">The type of the mocked object to query.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5043 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5044 <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5045 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5046 Access the universe of mocks of the given type, to retrieve those
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5047 that behave according to the LINQ query specification.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5048 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5049 <param name="specification">The predicate with the setup expressions.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5050 <typeparam name="T">The type of the mocked object to query.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5051 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5052 <member name="M:Moq.Mocks.OneOf``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5053 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5054 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5055 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5056 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5057 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5058 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5059 <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5060 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5061 Creates an mock object of the indicated type.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5062 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5063 <param name="specification">The predicate with the setup expressions.</param>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5064 <typeparam name="T">The type of the mocked object.</typeparam>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5065 <returns>The mocked object created.</returns>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5066 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5067 <member name="M:Moq.Mocks.CreateMockQuery``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5068 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5069 Creates the mock query with the underlying queriable implementation.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5070 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5071 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5072 <member name="M:Moq.Mocks.CreateQueryable``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5073 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5074 Wraps the enumerator inside a queryable.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5075 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5076 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5077 <member name="M:Moq.Mocks.CreateMocks``1">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5078 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5079 Method that is turned into the actual call from .Query{T}, to
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5080 transform the queryable query into a normal enumerable query.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5081 This method is never used directly by consumers.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5082 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5083 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5084 <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5085 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5086 Extension method used to support Linq-like setup properties that are not virtual but do have
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5087 a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5088 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5089 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5090 <member name="T:Moq.QueryableMockExtensions">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5091 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5092 Helper extensions that are used by the query translator.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5093 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5094 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5095 <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5096 <summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5097 Retrieves a fluent mock from the given setup expression.
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5098 </summary>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5099 </member>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5100 </members>
572886951353 Working tests under StatLight
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff changeset
5101 </doc>