comparison src/packages/Moq.4.1.1309.1617/lib/net35/Moq.xml @ 0:5bca2d201ad8

initial commit
author cin
date Sun, 24 Aug 2014 11:14:55 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5bca2d201ad8
1 <?xml version="1.0"?>
2 <doc>
3 <assembly>
4 <name>Moq</name>
5 </assembly>
6 <members>
7 <member name="T:Moq.Language.ISetupConditionResult`1">
8 <summary>
9 Implements the fluent API.
10 </summary>
11 </member>
12 <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
13 <summary>
14 The expectation will be considered only in the former condition.
15 </summary>
16 <param name="expression"></param>
17 <returns></returns>
18 </member>
19 <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
20 <summary>
21 The expectation will be considered only in the former condition.
22 </summary>
23 <typeparam name="TResult"></typeparam>
24 <param name="expression"></param>
25 <returns></returns>
26 </member>
27 <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
28 <summary>
29 Setups the get.
30 </summary>
31 <typeparam name="TProperty">The type of the property.</typeparam>
32 <param name="expression">The expression.</param>
33 <returns></returns>
34 </member>
35 <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">
36 <summary>
37 Setups the set.
38 </summary>
39 <typeparam name="TProperty">The type of the property.</typeparam>
40 <param name="setterExpression">The setter expression.</param>
41 <returns></returns>
42 </member>
43 <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">
44 <summary>
45 Setups the set.
46 </summary>
47 <param name="setterExpression">The setter expression.</param>
48 <returns></returns>
49 </member>
50 <member name="M:Moq.IInterceptStrategy.HandleIntercept(Moq.Proxy.ICallContext,Moq.InterceptStrategyContext)">
51 <summary>
52 Handle interception
53 </summary>
54 <param name="invocation">the current invocation context</param>
55 <param name="ctx">shared data among the strategies during an interception</param>
56 <returns>true if further interception has to be processed, otherwise false</returns>
57 </member>
58 <member name="T:Moq.IMock`1">
59 <summary>
60 Covarient interface for Mock&lt;T&gt; such that casts between IMock&lt;Employee&gt; to IMock&lt;Person&gt;
61 are possible. Only covers the covariant members of Mock&lt;T&gt;.
62 </summary>
63 </member>
64 <member name="P:Moq.IMock`1.Object">
65 <summary>
66 Exposes the mocked object instance.
67 </summary>
68 </member>
69 <member name="P:Moq.IMock`1.Behavior">
70 <summary>
71 Behavior of the mock, according to the value set in the constructor.
72 </summary>
73 </member>
74 <member name="P:Moq.IMock`1.CallBase">
75 <summary>
76 Whether the base member virtual implementation will be called
77 for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
78 </summary>
79 </member>
80 <member name="P:Moq.IMock`1.DefaultValue">
81 <summary>
82 Specifies the behavior to use when returning default values for
83 unexpected invocations on loose mocks.
84 </summary>
85 </member>
86 <member name="M:Moq.AddActualInvocation.GetEventFromName(System.String)">
87 <summary>
88 Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
89 </summary>
90 <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
91 </member>
92 <member name="M:Moq.AddActualInvocation.GetNonPublicEventFromName(System.String)">
93 <summary>
94 Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
95 Searches also in non public events.
96 </summary>
97 <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>
98 </member>
99 <member name="M:Moq.AddActualInvocation.GetAncestorTypes(System.Type)">
100 <summary>
101 Given a type return all of its ancestors, both types and interfaces.
102 </summary>
103 <param name="initialType">The type to find immediate ancestors of</param>
104 </member>
105 <member name="T:Moq.Language.ICallback">
106 <summary>
107 Defines the <c>Callback</c> verb and overloads.
108 </summary>
109 </member>
110 <member name="T:Moq.IHideObjectMembers">
111 <summary>
112 Helper interface used to hide the base <see cref="T:System.Object"/>
113 members from the fluent API to make it much cleaner
114 in Visual Studio intellisense.
115 </summary>
116 </member>
117 <member name="M:Moq.IHideObjectMembers.GetType">
118 <summary/>
119 </member>
120 <member name="M:Moq.IHideObjectMembers.GetHashCode">
121 <summary/>
122 </member>
123 <member name="M:Moq.IHideObjectMembers.ToString">
124 <summary/>
125 </member>
126 <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">
127 <summary/>
128 </member>
129 <member name="M:Moq.Language.ICallback.Callback(System.Action)">
130 <summary>
131 Specifies a callback to invoke when the method is called.
132 </summary>
133 <param name="action">The callback method to invoke.</param>
134 <example>
135 The following example specifies a callback to set a boolean
136 value that can be used later:
137 <code>
138 var called = false;
139 mock.Setup(x => x.Execute())
140 .Callback(() => called = true);
141 </code>
142 </example>
143 </member>
144 <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">
145 <summary>
146 Specifies a callback to invoke when the method is called that receives the original arguments.
147 </summary>
148 <typeparam name="T">The argument type of the invoked method.</typeparam>
149 <param name="action">The callback method to invoke.</param>
150 <example>
151 Invokes the given callback with the concrete invocation argument value.
152 <para>
153 Notice how the specific string argument is retrieved by simply declaring
154 it as part of the lambda expression for the callback:
155 </para>
156 <code>
157 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
158 .Callback((string command) => Console.WriteLine(command));
159 </code>
160 </example>
161 </member>
162 <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">
163 <summary>
164 Specifies a callback to invoke when the method is called that receives the original arguments.
165 </summary>
166 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
167 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
168 <param name="action">The callback method to invoke.</param>
169 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
170 <example>
171 Invokes the given callback with the concrete invocation arguments values.
172 <para>
173 Notice how the specific arguments are retrieved by simply declaring
174 them as part of the lambda expression for the callback:
175 </para>
176 <code>
177 mock.Setup(x =&gt; x.Execute(
178 It.IsAny&lt;string&gt;(),
179 It.IsAny&lt;string&gt;()))
180 .Callback((string arg1, string arg2) =&gt; Console.WriteLine(arg1 + arg2));
181 </code>
182 </example>
183 </member>
184 <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">
185 <summary>
186 Specifies a callback to invoke when the method is called that receives the original arguments.
187 </summary>
188 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
189 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
190 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
191 <param name="action">The callback method to invoke.</param>
192 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
193 <example>
194 Invokes the given callback with the concrete invocation arguments values.
195 <para>
196 Notice how the specific arguments are retrieved by simply declaring
197 them as part of the lambda expression for the callback:
198 </para>
199 <code>
200 mock.Setup(x =&gt; x.Execute(
201 It.IsAny&lt;string&gt;(),
202 It.IsAny&lt;string&gt;(),
203 It.IsAny&lt;string&gt;()))
204 .Callback((string arg1, string arg2, string arg3) =&gt; Console.WriteLine(arg1 + arg2 + arg3));
205 </code>
206 </example>
207 </member>
208 <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">
209 <summary>
210 Specifies a callback to invoke when the method is called that receives the original arguments.
211 </summary>
212 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
213 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
214 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
215 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
216 <param name="action">The callback method to invoke.</param>
217 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
218 <example>
219 Invokes the given callback with the concrete invocation arguments values.
220 <para>
221 Notice how the specific arguments are retrieved by simply declaring
222 them as part of the lambda expression for the callback:
223 </para>
224 <code>
225 mock.Setup(x =&gt; x.Execute(
226 It.IsAny&lt;string&gt;(),
227 It.IsAny&lt;string&gt;(),
228 It.IsAny&lt;string&gt;(),
229 It.IsAny&lt;string&gt;()))
230 .Callback((string arg1, string arg2, string arg3, string arg4) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4));
231 </code>
232 </example>
233 </member>
234 <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">
235 <summary>
236 Specifies a callback to invoke when the method is called that receives the original arguments.
237 </summary>
238 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
239 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
240 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
241 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
242 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
243 <param name="action">The callback method to invoke.</param>
244 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
245 <example>
246 Invokes the given callback with the concrete invocation arguments values.
247 <para>
248 Notice how the specific arguments are retrieved by simply declaring
249 them as part of the lambda expression for the callback:
250 </para>
251 <code>
252 mock.Setup(x =&gt; x.Execute(
253 It.IsAny&lt;string&gt;(),
254 It.IsAny&lt;string&gt;(),
255 It.IsAny&lt;string&gt;(),
256 It.IsAny&lt;string&gt;(),
257 It.IsAny&lt;string&gt;()))
258 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
259 </code>
260 </example>
261 </member>
262 <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
263 <summary>
264 Specifies a callback to invoke when the method is called that receives the original arguments.
265 </summary>
266 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
267 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
268 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
269 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
270 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
271 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
272 <param name="action">The callback method to invoke.</param>
273 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
274 <example>
275 Invokes the given callback with the concrete invocation arguments values.
276 <para>
277 Notice how the specific arguments are retrieved by simply declaring
278 them as part of the lambda expression for the callback:
279 </para>
280 <code>
281 mock.Setup(x =&gt; x.Execute(
282 It.IsAny&lt;string&gt;(),
283 It.IsAny&lt;string&gt;(),
284 It.IsAny&lt;string&gt;(),
285 It.IsAny&lt;string&gt;(),
286 It.IsAny&lt;string&gt;(),
287 It.IsAny&lt;string&gt;()))
288 .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
289 </code>
290 </example>
291 </member>
292 <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
293 <summary>
294 Specifies a callback to invoke when the method is called that receives the original arguments.
295 </summary>
296 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
297 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
298 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
299 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
300 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
301 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
302 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
303 <param name="action">The callback method to invoke.</param>
304 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
305 <example>
306 Invokes the given callback with the concrete invocation arguments values.
307 <para>
308 Notice how the specific arguments are retrieved by simply declaring
309 them as part of the lambda expression for the callback:
310 </para>
311 <code>
312 mock.Setup(x =&gt; x.Execute(
313 It.IsAny&lt;string&gt;(),
314 It.IsAny&lt;string&gt;(),
315 It.IsAny&lt;string&gt;(),
316 It.IsAny&lt;string&gt;(),
317 It.IsAny&lt;string&gt;(),
318 It.IsAny&lt;string&gt;(),
319 It.IsAny&lt;string&gt;()))
320 .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));
321 </code>
322 </example>
323 </member>
324 <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
325 <summary>
326 Specifies a callback to invoke when the method is called that receives the original arguments.
327 </summary>
328 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
329 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
330 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
331 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
332 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
333 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
334 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
335 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
336 <param name="action">The callback method to invoke.</param>
337 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
338 <example>
339 Invokes the given callback with the concrete invocation arguments values.
340 <para>
341 Notice how the specific arguments are retrieved by simply declaring
342 them as part of the lambda expression for the callback:
343 </para>
344 <code>
345 mock.Setup(x =&gt; x.Execute(
346 It.IsAny&lt;string&gt;(),
347 It.IsAny&lt;string&gt;(),
348 It.IsAny&lt;string&gt;(),
349 It.IsAny&lt;string&gt;(),
350 It.IsAny&lt;string&gt;(),
351 It.IsAny&lt;string&gt;(),
352 It.IsAny&lt;string&gt;(),
353 It.IsAny&lt;string&gt;()))
354 .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));
355 </code>
356 </example>
357 </member>
358 <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
359 <summary>
360 Specifies a callback to invoke when the method is called that receives the original arguments.
361 </summary>
362 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
363 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
364 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
365 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
366 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
367 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
368 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
369 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
370 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
371 <param name="action">The callback method to invoke.</param>
372 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
373 <example>
374 Invokes the given callback with the concrete invocation arguments values.
375 <para>
376 Notice how the specific arguments are retrieved by simply declaring
377 them as part of the lambda expression for the callback:
378 </para>
379 <code>
380 mock.Setup(x =&gt; x.Execute(
381 It.IsAny&lt;string&gt;(),
382 It.IsAny&lt;string&gt;(),
383 It.IsAny&lt;string&gt;(),
384 It.IsAny&lt;string&gt;(),
385 It.IsAny&lt;string&gt;(),
386 It.IsAny&lt;string&gt;(),
387 It.IsAny&lt;string&gt;(),
388 It.IsAny&lt;string&gt;(),
389 It.IsAny&lt;string&gt;()))
390 .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));
391 </code>
392 </example>
393 </member>
394 <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
395 <summary>
396 Specifies a callback to invoke when the method is called that receives the original arguments.
397 </summary>
398 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
399 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
400 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
401 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
402 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
403 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
404 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
405 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
406 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
407 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
408 <param name="action">The callback method to invoke.</param>
409 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
410 <example>
411 Invokes the given callback with the concrete invocation arguments values.
412 <para>
413 Notice how the specific arguments are retrieved by simply declaring
414 them as part of the lambda expression for the callback:
415 </para>
416 <code>
417 mock.Setup(x =&gt; x.Execute(
418 It.IsAny&lt;string&gt;(),
419 It.IsAny&lt;string&gt;(),
420 It.IsAny&lt;string&gt;(),
421 It.IsAny&lt;string&gt;(),
422 It.IsAny&lt;string&gt;(),
423 It.IsAny&lt;string&gt;(),
424 It.IsAny&lt;string&gt;(),
425 It.IsAny&lt;string&gt;(),
426 It.IsAny&lt;string&gt;(),
427 It.IsAny&lt;string&gt;()))
428 .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));
429 </code>
430 </example>
431 </member>
432 <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
433 <summary>
434 Specifies a callback to invoke when the method is called that receives the original arguments.
435 </summary>
436 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
437 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
438 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
439 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
440 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
441 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
442 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
443 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
444 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
445 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
446 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
447 <param name="action">The callback method to invoke.</param>
448 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
449 <example>
450 Invokes the given callback with the concrete invocation arguments values.
451 <para>
452 Notice how the specific arguments are retrieved by simply declaring
453 them as part of the lambda expression for the callback:
454 </para>
455 <code>
456 mock.Setup(x =&gt; x.Execute(
457 It.IsAny&lt;string&gt;(),
458 It.IsAny&lt;string&gt;(),
459 It.IsAny&lt;string&gt;(),
460 It.IsAny&lt;string&gt;(),
461 It.IsAny&lt;string&gt;(),
462 It.IsAny&lt;string&gt;(),
463 It.IsAny&lt;string&gt;(),
464 It.IsAny&lt;string&gt;(),
465 It.IsAny&lt;string&gt;(),
466 It.IsAny&lt;string&gt;(),
467 It.IsAny&lt;string&gt;()))
468 .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));
469 </code>
470 </example>
471 </member>
472 <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
473 <summary>
474 Specifies a callback to invoke when the method is called that receives the original arguments.
475 </summary>
476 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
477 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
478 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
479 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
480 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
481 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
482 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
483 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
484 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
485 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
486 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
487 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
488 <param name="action">The callback method to invoke.</param>
489 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
490 <example>
491 Invokes the given callback with the concrete invocation arguments values.
492 <para>
493 Notice how the specific arguments are retrieved by simply declaring
494 them as part of the lambda expression for the callback:
495 </para>
496 <code>
497 mock.Setup(x =&gt; x.Execute(
498 It.IsAny&lt;string&gt;(),
499 It.IsAny&lt;string&gt;(),
500 It.IsAny&lt;string&gt;(),
501 It.IsAny&lt;string&gt;(),
502 It.IsAny&lt;string&gt;(),
503 It.IsAny&lt;string&gt;(),
504 It.IsAny&lt;string&gt;(),
505 It.IsAny&lt;string&gt;(),
506 It.IsAny&lt;string&gt;(),
507 It.IsAny&lt;string&gt;(),
508 It.IsAny&lt;string&gt;(),
509 It.IsAny&lt;string&gt;()))
510 .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));
511 </code>
512 </example>
513 </member>
514 <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
515 <summary>
516 Specifies a callback to invoke when the method is called that receives the original arguments.
517 </summary>
518 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
519 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
520 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
521 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
522 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
523 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
524 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
525 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
526 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
527 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
528 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
529 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
530 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
531 <param name="action">The callback method to invoke.</param>
532 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
533 <example>
534 Invokes the given callback with the concrete invocation arguments values.
535 <para>
536 Notice how the specific arguments are retrieved by simply declaring
537 them as part of the lambda expression for the callback:
538 </para>
539 <code>
540 mock.Setup(x =&gt; x.Execute(
541 It.IsAny&lt;string&gt;(),
542 It.IsAny&lt;string&gt;(),
543 It.IsAny&lt;string&gt;(),
544 It.IsAny&lt;string&gt;(),
545 It.IsAny&lt;string&gt;(),
546 It.IsAny&lt;string&gt;(),
547 It.IsAny&lt;string&gt;(),
548 It.IsAny&lt;string&gt;(),
549 It.IsAny&lt;string&gt;(),
550 It.IsAny&lt;string&gt;(),
551 It.IsAny&lt;string&gt;(),
552 It.IsAny&lt;string&gt;(),
553 It.IsAny&lt;string&gt;()))
554 .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));
555 </code>
556 </example>
557 </member>
558 <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">
559 <summary>
560 Specifies a callback to invoke when the method is called that receives the original arguments.
561 </summary>
562 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
563 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
564 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
565 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
566 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
567 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
568 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
569 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
570 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
571 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
572 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
573 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
574 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
575 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
576 <param name="action">The callback method to invoke.</param>
577 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
578 <example>
579 Invokes the given callback with the concrete invocation arguments values.
580 <para>
581 Notice how the specific arguments are retrieved by simply declaring
582 them as part of the lambda expression for the callback:
583 </para>
584 <code>
585 mock.Setup(x =&gt; x.Execute(
586 It.IsAny&lt;string&gt;(),
587 It.IsAny&lt;string&gt;(),
588 It.IsAny&lt;string&gt;(),
589 It.IsAny&lt;string&gt;(),
590 It.IsAny&lt;string&gt;(),
591 It.IsAny&lt;string&gt;(),
592 It.IsAny&lt;string&gt;(),
593 It.IsAny&lt;string&gt;(),
594 It.IsAny&lt;string&gt;(),
595 It.IsAny&lt;string&gt;(),
596 It.IsAny&lt;string&gt;(),
597 It.IsAny&lt;string&gt;(),
598 It.IsAny&lt;string&gt;(),
599 It.IsAny&lt;string&gt;()))
600 .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));
601 </code>
602 </example>
603 </member>
604 <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})">
605 <summary>
606 Specifies a callback to invoke when the method is called that receives the original arguments.
607 </summary>
608 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
609 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
610 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
611 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
612 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
613 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
614 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
615 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
616 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
617 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
618 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
619 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
620 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
621 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
622 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
623 <param name="action">The callback method to invoke.</param>
624 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
625 <example>
626 Invokes the given callback with the concrete invocation arguments values.
627 <para>
628 Notice how the specific arguments are retrieved by simply declaring
629 them as part of the lambda expression for the callback:
630 </para>
631 <code>
632 mock.Setup(x =&gt; x.Execute(
633 It.IsAny&lt;string&gt;(),
634 It.IsAny&lt;string&gt;(),
635 It.IsAny&lt;string&gt;(),
636 It.IsAny&lt;string&gt;(),
637 It.IsAny&lt;string&gt;(),
638 It.IsAny&lt;string&gt;(),
639 It.IsAny&lt;string&gt;(),
640 It.IsAny&lt;string&gt;(),
641 It.IsAny&lt;string&gt;(),
642 It.IsAny&lt;string&gt;(),
643 It.IsAny&lt;string&gt;(),
644 It.IsAny&lt;string&gt;(),
645 It.IsAny&lt;string&gt;(),
646 It.IsAny&lt;string&gt;(),
647 It.IsAny&lt;string&gt;()))
648 .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));
649 </code>
650 </example>
651 </member>
652 <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})">
653 <summary>
654 Specifies a callback to invoke when the method is called that receives the original arguments.
655 </summary>
656 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
657 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
658 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
659 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
660 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
661 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
662 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
663 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
664 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
665 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
666 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
667 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
668 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
669 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
670 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
671 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
672 <param name="action">The callback method to invoke.</param>
673 <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>
674 <example>
675 Invokes the given callback with the concrete invocation arguments values.
676 <para>
677 Notice how the specific arguments are retrieved by simply declaring
678 them as part of the lambda expression for the callback:
679 </para>
680 <code>
681 mock.Setup(x =&gt; x.Execute(
682 It.IsAny&lt;string&gt;(),
683 It.IsAny&lt;string&gt;(),
684 It.IsAny&lt;string&gt;(),
685 It.IsAny&lt;string&gt;(),
686 It.IsAny&lt;string&gt;(),
687 It.IsAny&lt;string&gt;(),
688 It.IsAny&lt;string&gt;(),
689 It.IsAny&lt;string&gt;(),
690 It.IsAny&lt;string&gt;(),
691 It.IsAny&lt;string&gt;(),
692 It.IsAny&lt;string&gt;(),
693 It.IsAny&lt;string&gt;(),
694 It.IsAny&lt;string&gt;(),
695 It.IsAny&lt;string&gt;(),
696 It.IsAny&lt;string&gt;(),
697 It.IsAny&lt;string&gt;()))
698 .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));
699 </code>
700 </example>
701 </member>
702 <member name="T:Moq.Language.ICallback`2">
703 <summary>
704 Defines the <c>Callback</c> verb and overloads for callbacks on
705 setups that return a value.
706 </summary>
707 <typeparam name="TMock">Mocked type.</typeparam>
708 <typeparam name="TResult">Type of the return value of the setup.</typeparam>
709 </member>
710 <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">
711 <summary>
712 Specifies a callback to invoke when the method is called.
713 </summary>
714 <param name="action">The callback method to invoke.</param>
715 <example>
716 The following example specifies a callback to set a boolean value that can be used later:
717 <code>
718 var called = false;
719 mock.Setup(x => x.Execute())
720 .Callback(() => called = true)
721 .Returns(true);
722 </code>
723 Note that in the case of value-returning methods, after the <c>Callback</c>
724 call you can still specify the return value.
725 </example>
726 </member>
727 <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">
728 <summary>
729 Specifies a callback to invoke when the method is called that receives the original arguments.
730 </summary>
731 <typeparam name="T">The type of the argument of the invoked method.</typeparam>
732 <param name="action">Callback method to invoke.</param>
733 <example>
734 Invokes the given callback with the concrete invocation argument value.
735 <para>
736 Notice how the specific string argument is retrieved by simply declaring
737 it as part of the lambda expression for the callback:
738 </para>
739 <code>
740 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
741 .Callback(command => Console.WriteLine(command))
742 .Returns(true);
743 </code>
744 </example>
745 </member>
746 <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">
747 <summary>
748 Specifies a callback to invoke when the method is called that receives the original
749 arguments.
750 </summary>
751 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
752 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
753 <param name="action">The callback method to invoke.</param>
754 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
755 <example>
756 Invokes the given callback with the concrete invocation arguments values.
757 <para>
758 Notice how the specific arguments are retrieved by simply declaring
759 them as part of the lambda expression for the callback:
760 </para>
761 <code>
762 mock.Setup(x =&gt; x.Execute(
763 It.IsAny&lt;string&gt;(),
764 It.IsAny&lt;string&gt;()))
765 .Callback((arg1, arg2) =&gt; Console.WriteLine(arg1 + arg2));
766 </code>
767 </example>
768 </member>
769 <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">
770 <summary>
771 Specifies a callback to invoke when the method is called that receives the original
772 arguments.
773 </summary>
774 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
775 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
776 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
777 <param name="action">The callback method to invoke.</param>
778 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
779 <example>
780 Invokes the given callback with the concrete invocation arguments values.
781 <para>
782 Notice how the specific arguments are retrieved by simply declaring
783 them as part of the lambda expression for the callback:
784 </para>
785 <code>
786 mock.Setup(x =&gt; x.Execute(
787 It.IsAny&lt;string&gt;(),
788 It.IsAny&lt;string&gt;(),
789 It.IsAny&lt;string&gt;()))
790 .Callback((arg1, arg2, arg3) =&gt; Console.WriteLine(arg1 + arg2 + arg3));
791 </code>
792 </example>
793 </member>
794 <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">
795 <summary>
796 Specifies a callback to invoke when the method is called that receives the original
797 arguments.
798 </summary>
799 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
800 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
801 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
802 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
803 <param name="action">The callback method to invoke.</param>
804 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
805 <example>
806 Invokes the given callback with the concrete invocation arguments values.
807 <para>
808 Notice how the specific arguments are retrieved by simply declaring
809 them as part of the lambda expression for the callback:
810 </para>
811 <code>
812 mock.Setup(x =&gt; x.Execute(
813 It.IsAny&lt;string&gt;(),
814 It.IsAny&lt;string&gt;(),
815 It.IsAny&lt;string&gt;(),
816 It.IsAny&lt;string&gt;()))
817 .Callback((arg1, arg2, arg3, arg4) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4));
818 </code>
819 </example>
820 </member>
821 <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">
822 <summary>
823 Specifies a callback to invoke when the method is called that receives the original
824 arguments.
825 </summary>
826 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
827 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
828 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
829 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
830 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
831 <param name="action">The callback method to invoke.</param>
832 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
833 <example>
834 Invokes the given callback with the concrete invocation arguments values.
835 <para>
836 Notice how the specific arguments are retrieved by simply declaring
837 them as part of the lambda expression for the callback:
838 </para>
839 <code>
840 mock.Setup(x =&gt; x.Execute(
841 It.IsAny&lt;string&gt;(),
842 It.IsAny&lt;string&gt;(),
843 It.IsAny&lt;string&gt;(),
844 It.IsAny&lt;string&gt;(),
845 It.IsAny&lt;string&gt;()))
846 .Callback((arg1, arg2, arg3, arg4, arg5) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
847 </code>
848 </example>
849 </member>
850 <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">
851 <summary>
852 Specifies a callback to invoke when the method is called that receives the original
853 arguments.
854 </summary>
855 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
856 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
857 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
858 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
859 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
860 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
861 <param name="action">The callback method to invoke.</param>
862 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
863 <example>
864 Invokes the given callback with the concrete invocation arguments values.
865 <para>
866 Notice how the specific arguments are retrieved by simply declaring
867 them as part of the lambda expression for the callback:
868 </para>
869 <code>
870 mock.Setup(x =&gt; x.Execute(
871 It.IsAny&lt;string&gt;(),
872 It.IsAny&lt;string&gt;(),
873 It.IsAny&lt;string&gt;(),
874 It.IsAny&lt;string&gt;(),
875 It.IsAny&lt;string&gt;(),
876 It.IsAny&lt;string&gt;()))
877 .Callback((arg1, arg2, arg3, arg4, arg5, arg6) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
878 </code>
879 </example>
880 </member>
881 <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">
882 <summary>
883 Specifies a callback to invoke when the method is called that receives the original
884 arguments.
885 </summary>
886 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
887 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
888 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
889 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
890 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
891 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
892 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
893 <param name="action">The callback method to invoke.</param>
894 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
895 <example>
896 Invokes the given callback with the concrete invocation arguments values.
897 <para>
898 Notice how the specific arguments are retrieved by simply declaring
899 them as part of the lambda expression for the callback:
900 </para>
901 <code>
902 mock.Setup(x =&gt; x.Execute(
903 It.IsAny&lt;string&gt;(),
904 It.IsAny&lt;string&gt;(),
905 It.IsAny&lt;string&gt;(),
906 It.IsAny&lt;string&gt;(),
907 It.IsAny&lt;string&gt;(),
908 It.IsAny&lt;string&gt;(),
909 It.IsAny&lt;string&gt;()))
910 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
911 </code>
912 </example>
913 </member>
914 <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">
915 <summary>
916 Specifies a callback to invoke when the method is called that receives the original
917 arguments.
918 </summary>
919 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
920 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
921 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
922 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
923 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
924 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
925 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
926 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
927 <param name="action">The callback method to invoke.</param>
928 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
929 <example>
930 Invokes the given callback with the concrete invocation arguments values.
931 <para>
932 Notice how the specific arguments are retrieved by simply declaring
933 them as part of the lambda expression for the callback:
934 </para>
935 <code>
936 mock.Setup(x =&gt; x.Execute(
937 It.IsAny&lt;string&gt;(),
938 It.IsAny&lt;string&gt;(),
939 It.IsAny&lt;string&gt;(),
940 It.IsAny&lt;string&gt;(),
941 It.IsAny&lt;string&gt;(),
942 It.IsAny&lt;string&gt;(),
943 It.IsAny&lt;string&gt;(),
944 It.IsAny&lt;string&gt;()))
945 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
946 </code>
947 </example>
948 </member>
949 <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">
950 <summary>
951 Specifies a callback to invoke when the method is called that receives the original
952 arguments.
953 </summary>
954 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
955 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
956 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
957 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
958 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
959 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
960 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
961 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
962 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
963 <param name="action">The callback method to invoke.</param>
964 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
965 <example>
966 Invokes the given callback with the concrete invocation arguments values.
967 <para>
968 Notice how the specific arguments are retrieved by simply declaring
969 them as part of the lambda expression for the callback:
970 </para>
971 <code>
972 mock.Setup(x =&gt; x.Execute(
973 It.IsAny&lt;string&gt;(),
974 It.IsAny&lt;string&gt;(),
975 It.IsAny&lt;string&gt;(),
976 It.IsAny&lt;string&gt;(),
977 It.IsAny&lt;string&gt;(),
978 It.IsAny&lt;string&gt;(),
979 It.IsAny&lt;string&gt;(),
980 It.IsAny&lt;string&gt;(),
981 It.IsAny&lt;string&gt;()))
982 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
983 </code>
984 </example>
985 </member>
986 <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
987 <summary>
988 Specifies a callback to invoke when the method is called that receives the original
989 arguments.
990 </summary>
991 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
992 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
993 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
994 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
995 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
996 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
997 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
998 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
999 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1000 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1001 <param name="action">The callback method to invoke.</param>
1002 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1003 <example>
1004 Invokes the given callback with the concrete invocation arguments values.
1005 <para>
1006 Notice how the specific arguments are retrieved by simply declaring
1007 them as part of the lambda expression for the callback:
1008 </para>
1009 <code>
1010 mock.Setup(x =&gt; x.Execute(
1011 It.IsAny&lt;string&gt;(),
1012 It.IsAny&lt;string&gt;(),
1013 It.IsAny&lt;string&gt;(),
1014 It.IsAny&lt;string&gt;(),
1015 It.IsAny&lt;string&gt;(),
1016 It.IsAny&lt;string&gt;(),
1017 It.IsAny&lt;string&gt;(),
1018 It.IsAny&lt;string&gt;(),
1019 It.IsAny&lt;string&gt;(),
1020 It.IsAny&lt;string&gt;()))
1021 .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) =&gt; Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
1022 </code>
1023 </example>
1024 </member>
1025 <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">
1026 <summary>
1027 Specifies a callback to invoke when the method is called that receives the original
1028 arguments.
1029 </summary>
1030 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1031 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1032 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1033 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1034 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1035 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1036 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1037 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1038 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1039 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1040 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1041 <param name="action">The callback method to invoke.</param>
1042 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1043 <example>
1044 Invokes the given callback with the concrete invocation arguments values.
1045 <para>
1046 Notice how the specific arguments are retrieved by simply declaring
1047 them as part of the lambda expression for the callback:
1048 </para>
1049 <code>
1050 mock.Setup(x =&gt; x.Execute(
1051 It.IsAny&lt;string&gt;(),
1052 It.IsAny&lt;string&gt;(),
1053 It.IsAny&lt;string&gt;(),
1054 It.IsAny&lt;string&gt;(),
1055 It.IsAny&lt;string&gt;(),
1056 It.IsAny&lt;string&gt;(),
1057 It.IsAny&lt;string&gt;(),
1058 It.IsAny&lt;string&gt;(),
1059 It.IsAny&lt;string&gt;(),
1060 It.IsAny&lt;string&gt;(),
1061 It.IsAny&lt;string&gt;()))
1062 .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));
1063 </code>
1064 </example>
1065 </member>
1066 <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">
1067 <summary>
1068 Specifies a callback to invoke when the method is called that receives the original
1069 arguments.
1070 </summary>
1071 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1072 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1073 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1074 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1075 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1076 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1077 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1078 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1079 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1080 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1081 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1082 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
1083 <param name="action">The callback method to invoke.</param>
1084 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1085 <example>
1086 Invokes the given callback with the concrete invocation arguments values.
1087 <para>
1088 Notice how the specific arguments are retrieved by simply declaring
1089 them as part of the lambda expression for the callback:
1090 </para>
1091 <code>
1092 mock.Setup(x =&gt; x.Execute(
1093 It.IsAny&lt;string&gt;(),
1094 It.IsAny&lt;string&gt;(),
1095 It.IsAny&lt;string&gt;(),
1096 It.IsAny&lt;string&gt;(),
1097 It.IsAny&lt;string&gt;(),
1098 It.IsAny&lt;string&gt;(),
1099 It.IsAny&lt;string&gt;(),
1100 It.IsAny&lt;string&gt;(),
1101 It.IsAny&lt;string&gt;(),
1102 It.IsAny&lt;string&gt;(),
1103 It.IsAny&lt;string&gt;(),
1104 It.IsAny&lt;string&gt;()))
1105 .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));
1106 </code>
1107 </example>
1108 </member>
1109 <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">
1110 <summary>
1111 Specifies a callback to invoke when the method is called that receives the original
1112 arguments.
1113 </summary>
1114 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1115 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1116 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1117 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1118 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1119 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1120 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1121 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1122 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1123 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1124 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1125 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
1126 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
1127 <param name="action">The callback method to invoke.</param>
1128 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1129 <example>
1130 Invokes the given callback with the concrete invocation arguments values.
1131 <para>
1132 Notice how the specific arguments are retrieved by simply declaring
1133 them as part of the lambda expression for the callback:
1134 </para>
1135 <code>
1136 mock.Setup(x =&gt; x.Execute(
1137 It.IsAny&lt;string&gt;(),
1138 It.IsAny&lt;string&gt;(),
1139 It.IsAny&lt;string&gt;(),
1140 It.IsAny&lt;string&gt;(),
1141 It.IsAny&lt;string&gt;(),
1142 It.IsAny&lt;string&gt;(),
1143 It.IsAny&lt;string&gt;(),
1144 It.IsAny&lt;string&gt;(),
1145 It.IsAny&lt;string&gt;(),
1146 It.IsAny&lt;string&gt;(),
1147 It.IsAny&lt;string&gt;(),
1148 It.IsAny&lt;string&gt;(),
1149 It.IsAny&lt;string&gt;()))
1150 .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));
1151 </code>
1152 </example>
1153 </member>
1154 <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})">
1155 <summary>
1156 Specifies a callback to invoke when the method is called that receives the original
1157 arguments.
1158 </summary>
1159 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1160 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1161 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1162 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1163 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1164 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1165 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1166 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1167 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1168 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1169 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1170 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
1171 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
1172 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
1173 <param name="action">The callback method to invoke.</param>
1174 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1175 <example>
1176 Invokes the given callback with the concrete invocation arguments values.
1177 <para>
1178 Notice how the specific arguments are retrieved by simply declaring
1179 them as part of the lambda expression for the callback:
1180 </para>
1181 <code>
1182 mock.Setup(x =&gt; x.Execute(
1183 It.IsAny&lt;string&gt;(),
1184 It.IsAny&lt;string&gt;(),
1185 It.IsAny&lt;string&gt;(),
1186 It.IsAny&lt;string&gt;(),
1187 It.IsAny&lt;string&gt;(),
1188 It.IsAny&lt;string&gt;(),
1189 It.IsAny&lt;string&gt;(),
1190 It.IsAny&lt;string&gt;(),
1191 It.IsAny&lt;string&gt;(),
1192 It.IsAny&lt;string&gt;(),
1193 It.IsAny&lt;string&gt;(),
1194 It.IsAny&lt;string&gt;(),
1195 It.IsAny&lt;string&gt;(),
1196 It.IsAny&lt;string&gt;()))
1197 .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));
1198 </code>
1199 </example>
1200 </member>
1201 <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})">
1202 <summary>
1203 Specifies a callback to invoke when the method is called that receives the original
1204 arguments.
1205 </summary>
1206 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1207 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1208 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1209 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1210 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1211 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1212 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1213 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1214 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1215 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1216 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1217 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
1218 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
1219 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
1220 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
1221 <param name="action">The callback method to invoke.</param>
1222 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1223 <example>
1224 Invokes the given callback with the concrete invocation arguments values.
1225 <para>
1226 Notice how the specific arguments are retrieved by simply declaring
1227 them as part of the lambda expression for the callback:
1228 </para>
1229 <code>
1230 mock.Setup(x =&gt; x.Execute(
1231 It.IsAny&lt;string&gt;(),
1232 It.IsAny&lt;string&gt;(),
1233 It.IsAny&lt;string&gt;(),
1234 It.IsAny&lt;string&gt;(),
1235 It.IsAny&lt;string&gt;(),
1236 It.IsAny&lt;string&gt;(),
1237 It.IsAny&lt;string&gt;(),
1238 It.IsAny&lt;string&gt;(),
1239 It.IsAny&lt;string&gt;(),
1240 It.IsAny&lt;string&gt;(),
1241 It.IsAny&lt;string&gt;(),
1242 It.IsAny&lt;string&gt;(),
1243 It.IsAny&lt;string&gt;(),
1244 It.IsAny&lt;string&gt;(),
1245 It.IsAny&lt;string&gt;()))
1246 .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));
1247 </code>
1248 </example>
1249 </member>
1250 <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})">
1251 <summary>
1252 Specifies a callback to invoke when the method is called that receives the original
1253 arguments.
1254 </summary>
1255 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1256 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1257 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1258 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1259 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1260 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1261 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1262 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1263 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1264 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1265 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1266 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
1267 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
1268 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
1269 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
1270 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
1271 <param name="action">The callback method to invoke.</param>
1272 <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>
1273 <example>
1274 Invokes the given callback with the concrete invocation arguments values.
1275 <para>
1276 Notice how the specific arguments are retrieved by simply declaring
1277 them as part of the lambda expression for the callback:
1278 </para>
1279 <code>
1280 mock.Setup(x =&gt; x.Execute(
1281 It.IsAny&lt;string&gt;(),
1282 It.IsAny&lt;string&gt;(),
1283 It.IsAny&lt;string&gt;(),
1284 It.IsAny&lt;string&gt;(),
1285 It.IsAny&lt;string&gt;(),
1286 It.IsAny&lt;string&gt;(),
1287 It.IsAny&lt;string&gt;(),
1288 It.IsAny&lt;string&gt;(),
1289 It.IsAny&lt;string&gt;(),
1290 It.IsAny&lt;string&gt;(),
1291 It.IsAny&lt;string&gt;(),
1292 It.IsAny&lt;string&gt;(),
1293 It.IsAny&lt;string&gt;(),
1294 It.IsAny&lt;string&gt;(),
1295 It.IsAny&lt;string&gt;(),
1296 It.IsAny&lt;string&gt;()))
1297 .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));
1298 </code>
1299 </example>
1300 </member>
1301 <member name="T:Moq.Language.IRaise`1">
1302 <summary>
1303 Defines the <c>Raises</c> verb.
1304 </summary>
1305 </member>
1306 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">
1307 <summary>
1308 Specifies the event that will be raised
1309 when the setup is met.
1310 </summary>
1311 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
1312 <param name="args">The event arguments to pass for the raised event.</param>
1313 <example>
1314 The following example shows how to raise an event when
1315 the setup is met:
1316 <code>
1317 var mock = new Mock&lt;IContainer&gt;();
1318
1319 mock.Setup(add => add.Add(It.IsAny&lt;string&gt;(), It.IsAny&lt;object&gt;()))
1320 .Raises(add => add.Added += null, EventArgs.Empty);
1321 </code>
1322 </example>
1323 </member>
1324 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">
1325 <summary>
1326 Specifies the event that will be raised
1327 when the setup is matched.
1328 </summary>
1329 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
1330 <param name="func">A function that will build the <see cref="T:System.EventArgs"/>
1331 to pass when raising the event.</param>
1332 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1333 </member>
1334 <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">
1335 <summary>
1336 Specifies the custom event that will be raised
1337 when the setup is matched.
1338 </summary>
1339 <param name="eventExpression">An expression that represents an event attach or detach action.</param>
1340 <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>
1341 </member>
1342 <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">
1343 <summary>
1344 Specifies the event that will be raised when the setup is matched.
1345 </summary>
1346 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1347 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1348 to pass when raising the event.</param>
1349 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1350 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1351 </member>
1352 <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">
1353 <summary>
1354 Specifies the event that will be raised when the setup is matched.
1355 </summary>
1356 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1357 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1358 to pass when raising the event.</param>
1359 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1360 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1361 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1362 </member>
1363 <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">
1364 <summary>
1365 Specifies the event that will be raised when the setup is matched.
1366 </summary>
1367 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1368 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1369 to pass when raising the event.</param>
1370 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1371 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1372 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1373 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1374 </member>
1375 <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">
1376 <summary>
1377 Specifies the event that will be raised when the setup is matched.
1378 </summary>
1379 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1380 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1381 to pass when raising the event.</param>
1382 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1383 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1384 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1385 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1386 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1387 </member>
1388 <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">
1389 <summary>
1390 Specifies the event that will be raised when the setup is matched.
1391 </summary>
1392 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1393 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1394 to pass when raising the event.</param>
1395 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1396 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1397 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1398 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1399 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1400 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1401 </member>
1402 <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">
1403 <summary>
1404 Specifies the event that will be raised when the setup is matched.
1405 </summary>
1406 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1407 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1408 to pass when raising the event.</param>
1409 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1410 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1411 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1412 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1413 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1414 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1415 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1416 </member>
1417 <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">
1418 <summary>
1419 Specifies the event that will be raised when the setup is matched.
1420 </summary>
1421 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1422 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1423 to pass when raising the event.</param>
1424 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1425 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1426 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1427 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1428 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1429 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1430 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1431 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1432 </member>
1433 <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">
1434 <summary>
1435 Specifies the event that will be raised when the setup is matched.
1436 </summary>
1437 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1438 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1439 to pass when raising the event.</param>
1440 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1441 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1442 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1443 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1444 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1445 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1446 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1447 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1448 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1449 </member>
1450 <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})">
1451 <summary>
1452 Specifies the event that will be raised when the setup is matched.
1453 </summary>
1454 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1455 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1456 to pass when raising the event.</param>
1457 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1458 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1459 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1460 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1461 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1462 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1463 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1464 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1465 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1466 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1467 </member>
1468 <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})">
1469 <summary>
1470 Specifies the event that will be raised when the setup is matched.
1471 </summary>
1472 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1473 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1474 to pass when raising the event.</param>
1475 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1476 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1477 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1478 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1479 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1480 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1481 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1482 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1483 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1484 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1485 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1486 </member>
1487 <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})">
1488 <summary>
1489 Specifies the event that will be raised when the setup is matched.
1490 </summary>
1491 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1492 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1493 to pass when raising the event.</param>
1494 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1495 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1496 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1497 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1498 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1499 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1500 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1501 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1502 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1503 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1504 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1505 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1506 </member>
1507 <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})">
1508 <summary>
1509 Specifies the event that will be raised when the setup is matched.
1510 </summary>
1511 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1512 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1513 to pass when raising the event.</param>
1514 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1515 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1516 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1517 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1518 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1519 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1520 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1521 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1522 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1523 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1524 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1525 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
1526 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1527 </member>
1528 <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})">
1529 <summary>
1530 Specifies the event that will be raised when the setup is matched.
1531 </summary>
1532 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1533 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1534 to pass when raising the event.</param>
1535 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1536 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1537 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1538 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1539 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1540 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1541 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1542 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1543 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1544 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1545 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1546 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
1547 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
1548 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1549 </member>
1550 <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})">
1551 <summary>
1552 Specifies the event that will be raised when the setup is matched.
1553 </summary>
1554 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1555 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1556 to pass when raising the event.</param>
1557 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1558 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1559 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1560 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1561 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1562 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1563 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1564 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1565 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1566 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1567 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1568 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
1569 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
1570 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
1571 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1572 </member>
1573 <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})">
1574 <summary>
1575 Specifies the event that will be raised when the setup is matched.
1576 </summary>
1577 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1578 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1579 to pass when raising the event.</param>
1580 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1581 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1582 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1583 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1584 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1585 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1586 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1587 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1588 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1589 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1590 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1591 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
1592 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
1593 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
1594 <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
1595 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1596 </member>
1597 <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})">
1598 <summary>
1599 Specifies the event that will be raised when the setup is matched.
1600 </summary>
1601 <param name="eventExpression">The expression that represents an event attach or detach action.</param>
1602 <param name="func">The function that will build the <see cref="T:System.EventArgs"/>
1603 to pass when raising the event.</param>
1604 <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>
1605 <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>
1606 <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>
1607 <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>
1608 <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>
1609 <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>
1610 <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>
1611 <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>
1612 <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>
1613 <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>
1614 <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>
1615 <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>
1616 <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>
1617 <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>
1618 <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>
1619 <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>
1620 <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>
1621 </member>
1622 <member name="T:Moq.Language.IReturns`2">
1623 <summary>
1624 Defines the <c>Returns</c> verb.
1625 </summary>
1626 <typeparam name="TMock">Mocked type.</typeparam>
1627 <typeparam name="TResult">Type of the return value from the expression.</typeparam>
1628 </member>
1629 <member name="M:Moq.Language.IReturns`2.Returns(`1)">
1630 <summary>
1631 Specifies the value to return.
1632 </summary>
1633 <param name="value">The value to return, or <see langword="null"/>.</param>
1634 <example>
1635 Return a <c>true</c> value from the method call:
1636 <code>
1637 mock.Setup(x => x.Execute("ping"))
1638 .Returns(true);
1639 </code>
1640 </example>
1641 </member>
1642 <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">
1643 <summary>
1644 Specifies a function that will calculate the value to return from the method.
1645 </summary>
1646 <param name="valueFunction">The function that will calculate the return value.</param>
1647 <example group="returns">
1648 Return a calculated value when the method is called:
1649 <code>
1650 mock.Setup(x => x.Execute("ping"))
1651 .Returns(() => returnValues[0]);
1652 </code>
1653 The lambda expression to retrieve the return value is lazy-executed,
1654 meaning that its value may change depending on the moment the method
1655 is executed and the value the <c>returnValues</c> array has at
1656 that moment.
1657 </example>
1658 </member>
1659 <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">
1660 <summary>
1661 Specifies a function that will calculate the value to return from the method,
1662 retrieving the arguments for the invocation.
1663 </summary>
1664 <typeparam name="T">The type of the argument of the invoked method.</typeparam>
1665 <param name="valueFunction">The function that will calculate the return value.</param>
1666 <example group="returns">
1667 Return a calculated value which is evaluated lazily at the time of the invocation.
1668 <para>
1669 The lookup list can change between invocations and the setup
1670 will return different values accordingly. Also, notice how the specific
1671 string argument is retrieved by simply declaring it as part of the lambda
1672 expression:
1673 </para>
1674 <code>
1675 mock.Setup(x => x.Execute(It.IsAny&lt;string&gt;()))
1676 .Returns((string command) => returnValues[command]);
1677 </code>
1678 </example>
1679 </member>
1680 <member name="M:Moq.Language.IReturns`2.CallBase">
1681 <summary>
1682 Calls the real method of the object and returns its return value.
1683 </summary>
1684 <returns>The value calculated by the real method of the object.</returns>
1685 </member>
1686 <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">
1687 <summary>
1688 Specifies a function that will calculate the value to return from the method,
1689 retrieving the arguments for the invocation.
1690 </summary>
1691 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1692 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1693 <param name="valueFunction">The function that will calculate the return value.</param>
1694 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1695 <example>
1696 <para>
1697 The return value is calculated from the value of the actual method invocation arguments.
1698 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1699 expression:
1700 </para>
1701 <code>
1702 mock.Setup(x => x.Execute(
1703 It.IsAny&lt;int&gt;(),
1704 It.IsAny&lt;int&gt;()))
1705 .Returns((string arg1, string arg2) => arg1 + arg2);
1706 </code>
1707 </example>
1708 </member>
1709 <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">
1710 <summary>
1711 Specifies a function that will calculate the value to return from the method,
1712 retrieving the arguments for the invocation.
1713 </summary>
1714 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1715 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1716 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1717 <param name="valueFunction">The function that will calculate the return value.</param>
1718 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1719 <example>
1720 <para>
1721 The return value is calculated from the value of the actual method invocation arguments.
1722 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1723 expression:
1724 </para>
1725 <code>
1726 mock.Setup(x => x.Execute(
1727 It.IsAny&lt;int&gt;(),
1728 It.IsAny&lt;int&gt;(),
1729 It.IsAny&lt;int&gt;()))
1730 .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
1731 </code>
1732 </example>
1733 </member>
1734 <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">
1735 <summary>
1736 Specifies a function that will calculate the value to return from the method,
1737 retrieving the arguments for the invocation.
1738 </summary>
1739 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1740 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1741 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1742 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1743 <param name="valueFunction">The function that will calculate the return value.</param>
1744 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1745 <example>
1746 <para>
1747 The return value is calculated from the value of the actual method invocation arguments.
1748 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1749 expression:
1750 </para>
1751 <code>
1752 mock.Setup(x => x.Execute(
1753 It.IsAny&lt;int&gt;(),
1754 It.IsAny&lt;int&gt;(),
1755 It.IsAny&lt;int&gt;(),
1756 It.IsAny&lt;int&gt;()))
1757 .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
1758 </code>
1759 </example>
1760 </member>
1761 <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">
1762 <summary>
1763 Specifies a function that will calculate the value to return from the method,
1764 retrieving the arguments for the invocation.
1765 </summary>
1766 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1767 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1768 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1769 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1770 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1771 <param name="valueFunction">The function that will calculate the return value.</param>
1772 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1773 <example>
1774 <para>
1775 The return value is calculated from the value of the actual method invocation arguments.
1776 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1777 expression:
1778 </para>
1779 <code>
1780 mock.Setup(x => x.Execute(
1781 It.IsAny&lt;int&gt;(),
1782 It.IsAny&lt;int&gt;(),
1783 It.IsAny&lt;int&gt;(),
1784 It.IsAny&lt;int&gt;(),
1785 It.IsAny&lt;int&gt;()))
1786 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
1787 </code>
1788 </example>
1789 </member>
1790 <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">
1791 <summary>
1792 Specifies a function that will calculate the value to return from the method,
1793 retrieving the arguments for the invocation.
1794 </summary>
1795 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1796 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1797 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1798 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1799 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1800 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1801 <param name="valueFunction">The function that will calculate the return value.</param>
1802 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1803 <example>
1804 <para>
1805 The return value is calculated from the value of the actual method invocation arguments.
1806 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1807 expression:
1808 </para>
1809 <code>
1810 mock.Setup(x => x.Execute(
1811 It.IsAny&lt;int&gt;(),
1812 It.IsAny&lt;int&gt;(),
1813 It.IsAny&lt;int&gt;(),
1814 It.IsAny&lt;int&gt;(),
1815 It.IsAny&lt;int&gt;(),
1816 It.IsAny&lt;int&gt;()))
1817 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
1818 </code>
1819 </example>
1820 </member>
1821 <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">
1822 <summary>
1823 Specifies a function that will calculate the value to return from the method,
1824 retrieving the arguments for the invocation.
1825 </summary>
1826 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1827 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1828 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1829 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1830 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1831 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1832 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1833 <param name="valueFunction">The function that will calculate the return value.</param>
1834 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1835 <example>
1836 <para>
1837 The return value is calculated from the value of the actual method invocation arguments.
1838 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1839 expression:
1840 </para>
1841 <code>
1842 mock.Setup(x => x.Execute(
1843 It.IsAny&lt;int&gt;(),
1844 It.IsAny&lt;int&gt;(),
1845 It.IsAny&lt;int&gt;(),
1846 It.IsAny&lt;int&gt;(),
1847 It.IsAny&lt;int&gt;(),
1848 It.IsAny&lt;int&gt;(),
1849 It.IsAny&lt;int&gt;()))
1850 .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
1851 </code>
1852 </example>
1853 </member>
1854 <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">
1855 <summary>
1856 Specifies a function that will calculate the value to return from the method,
1857 retrieving the arguments for the invocation.
1858 </summary>
1859 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1860 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1861 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1862 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1863 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1864 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1865 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1866 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1867 <param name="valueFunction">The function that will calculate the return value.</param>
1868 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1869 <example>
1870 <para>
1871 The return value is calculated from the value of the actual method invocation arguments.
1872 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1873 expression:
1874 </para>
1875 <code>
1876 mock.Setup(x => x.Execute(
1877 It.IsAny&lt;int&gt;(),
1878 It.IsAny&lt;int&gt;(),
1879 It.IsAny&lt;int&gt;(),
1880 It.IsAny&lt;int&gt;(),
1881 It.IsAny&lt;int&gt;(),
1882 It.IsAny&lt;int&gt;(),
1883 It.IsAny&lt;int&gt;(),
1884 It.IsAny&lt;int&gt;()))
1885 .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);
1886 </code>
1887 </example>
1888 </member>
1889 <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">
1890 <summary>
1891 Specifies a function that will calculate the value to return from the method,
1892 retrieving the arguments for the invocation.
1893 </summary>
1894 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1895 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1896 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1897 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1898 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1899 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1900 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1901 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1902 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1903 <param name="valueFunction">The function that will calculate the return value.</param>
1904 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1905 <example>
1906 <para>
1907 The return value is calculated from the value of the actual method invocation arguments.
1908 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1909 expression:
1910 </para>
1911 <code>
1912 mock.Setup(x => x.Execute(
1913 It.IsAny&lt;int&gt;(),
1914 It.IsAny&lt;int&gt;(),
1915 It.IsAny&lt;int&gt;(),
1916 It.IsAny&lt;int&gt;(),
1917 It.IsAny&lt;int&gt;(),
1918 It.IsAny&lt;int&gt;(),
1919 It.IsAny&lt;int&gt;(),
1920 It.IsAny&lt;int&gt;(),
1921 It.IsAny&lt;int&gt;()))
1922 .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);
1923 </code>
1924 </example>
1925 </member>
1926 <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">
1927 <summary>
1928 Specifies a function that will calculate the value to return from the method,
1929 retrieving the arguments for the invocation.
1930 </summary>
1931 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1932 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1933 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1934 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1935 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1936 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1937 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1938 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1939 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1940 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1941 <param name="valueFunction">The function that will calculate the return value.</param>
1942 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1943 <example>
1944 <para>
1945 The return value is calculated from the value of the actual method invocation arguments.
1946 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1947 expression:
1948 </para>
1949 <code>
1950 mock.Setup(x => x.Execute(
1951 It.IsAny&lt;int&gt;(),
1952 It.IsAny&lt;int&gt;(),
1953 It.IsAny&lt;int&gt;(),
1954 It.IsAny&lt;int&gt;(),
1955 It.IsAny&lt;int&gt;(),
1956 It.IsAny&lt;int&gt;(),
1957 It.IsAny&lt;int&gt;(),
1958 It.IsAny&lt;int&gt;(),
1959 It.IsAny&lt;int&gt;(),
1960 It.IsAny&lt;int&gt;()))
1961 .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);
1962 </code>
1963 </example>
1964 </member>
1965 <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">
1966 <summary>
1967 Specifies a function that will calculate the value to return from the method,
1968 retrieving the arguments for the invocation.
1969 </summary>
1970 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
1971 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
1972 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
1973 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
1974 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
1975 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
1976 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
1977 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
1978 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
1979 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
1980 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
1981 <param name="valueFunction">The function that will calculate the return value.</param>
1982 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
1983 <example>
1984 <para>
1985 The return value is calculated from the value of the actual method invocation arguments.
1986 Notice how the arguments are retrieved by simply declaring them as part of the lambda
1987 expression:
1988 </para>
1989 <code>
1990 mock.Setup(x => x.Execute(
1991 It.IsAny&lt;int&gt;(),
1992 It.IsAny&lt;int&gt;(),
1993 It.IsAny&lt;int&gt;(),
1994 It.IsAny&lt;int&gt;(),
1995 It.IsAny&lt;int&gt;(),
1996 It.IsAny&lt;int&gt;(),
1997 It.IsAny&lt;int&gt;(),
1998 It.IsAny&lt;int&gt;(),
1999 It.IsAny&lt;int&gt;(),
2000 It.IsAny&lt;int&gt;(),
2001 It.IsAny&lt;int&gt;()))
2002 .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);
2003 </code>
2004 </example>
2005 </member>
2006 <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">
2007 <summary>
2008 Specifies a function that will calculate the value to return from the method,
2009 retrieving the arguments for the invocation.
2010 </summary>
2011 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
2012 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
2013 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
2014 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
2015 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
2016 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
2017 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
2018 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
2019 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
2020 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
2021 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
2022 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
2023 <param name="valueFunction">The function that will calculate the return value.</param>
2024 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
2025 <example>
2026 <para>
2027 The return value is calculated from the value of the actual method invocation arguments.
2028 Notice how the arguments are retrieved by simply declaring them as part of the lambda
2029 expression:
2030 </para>
2031 <code>
2032 mock.Setup(x => x.Execute(
2033 It.IsAny&lt;int&gt;(),
2034 It.IsAny&lt;int&gt;(),
2035 It.IsAny&lt;int&gt;(),
2036 It.IsAny&lt;int&gt;(),
2037 It.IsAny&lt;int&gt;(),
2038 It.IsAny&lt;int&gt;(),
2039 It.IsAny&lt;int&gt;(),
2040 It.IsAny&lt;int&gt;(),
2041 It.IsAny&lt;int&gt;(),
2042 It.IsAny&lt;int&gt;(),
2043 It.IsAny&lt;int&gt;(),
2044 It.IsAny&lt;int&gt;()))
2045 .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);
2046 </code>
2047 </example>
2048 </member>
2049 <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})">
2050 <summary>
2051 Specifies a function that will calculate the value to return from the method,
2052 retrieving the arguments for the invocation.
2053 </summary>
2054 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
2055 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
2056 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
2057 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
2058 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
2059 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
2060 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
2061 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
2062 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
2063 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
2064 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
2065 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
2066 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
2067 <param name="valueFunction">The function that will calculate the return value.</param>
2068 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
2069 <example>
2070 <para>
2071 The return value is calculated from the value of the actual method invocation arguments.
2072 Notice how the arguments are retrieved by simply declaring them as part of the lambda
2073 expression:
2074 </para>
2075 <code>
2076 mock.Setup(x => x.Execute(
2077 It.IsAny&lt;int&gt;(),
2078 It.IsAny&lt;int&gt;(),
2079 It.IsAny&lt;int&gt;(),
2080 It.IsAny&lt;int&gt;(),
2081 It.IsAny&lt;int&gt;(),
2082 It.IsAny&lt;int&gt;(),
2083 It.IsAny&lt;int&gt;(),
2084 It.IsAny&lt;int&gt;(),
2085 It.IsAny&lt;int&gt;(),
2086 It.IsAny&lt;int&gt;(),
2087 It.IsAny&lt;int&gt;(),
2088 It.IsAny&lt;int&gt;(),
2089 It.IsAny&lt;int&gt;()))
2090 .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);
2091 </code>
2092 </example>
2093 </member>
2094 <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})">
2095 <summary>
2096 Specifies a function that will calculate the value to return from the method,
2097 retrieving the arguments for the invocation.
2098 </summary>
2099 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
2100 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
2101 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
2102 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
2103 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
2104 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
2105 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
2106 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
2107 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
2108 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
2109 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
2110 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
2111 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
2112 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
2113 <param name="valueFunction">The function that will calculate the return value.</param>
2114 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
2115 <example>
2116 <para>
2117 The return value is calculated from the value of the actual method invocation arguments.
2118 Notice how the arguments are retrieved by simply declaring them as part of the lambda
2119 expression:
2120 </para>
2121 <code>
2122 mock.Setup(x => x.Execute(
2123 It.IsAny&lt;int&gt;(),
2124 It.IsAny&lt;int&gt;(),
2125 It.IsAny&lt;int&gt;(),
2126 It.IsAny&lt;int&gt;(),
2127 It.IsAny&lt;int&gt;(),
2128 It.IsAny&lt;int&gt;(),
2129 It.IsAny&lt;int&gt;(),
2130 It.IsAny&lt;int&gt;(),
2131 It.IsAny&lt;int&gt;(),
2132 It.IsAny&lt;int&gt;(),
2133 It.IsAny&lt;int&gt;(),
2134 It.IsAny&lt;int&gt;(),
2135 It.IsAny&lt;int&gt;(),
2136 It.IsAny&lt;int&gt;()))
2137 .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);
2138 </code>
2139 </example>
2140 </member>
2141 <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})">
2142 <summary>
2143 Specifies a function that will calculate the value to return from the method,
2144 retrieving the arguments for the invocation.
2145 </summary>
2146 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
2147 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
2148 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
2149 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
2150 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
2151 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
2152 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
2153 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
2154 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
2155 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
2156 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
2157 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
2158 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
2159 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
2160 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
2161 <param name="valueFunction">The function that will calculate the return value.</param>
2162 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
2163 <example>
2164 <para>
2165 The return value is calculated from the value of the actual method invocation arguments.
2166 Notice how the arguments are retrieved by simply declaring them as part of the lambda
2167 expression:
2168 </para>
2169 <code>
2170 mock.Setup(x => x.Execute(
2171 It.IsAny&lt;int&gt;(),
2172 It.IsAny&lt;int&gt;(),
2173 It.IsAny&lt;int&gt;(),
2174 It.IsAny&lt;int&gt;(),
2175 It.IsAny&lt;int&gt;(),
2176 It.IsAny&lt;int&gt;(),
2177 It.IsAny&lt;int&gt;(),
2178 It.IsAny&lt;int&gt;(),
2179 It.IsAny&lt;int&gt;(),
2180 It.IsAny&lt;int&gt;(),
2181 It.IsAny&lt;int&gt;(),
2182 It.IsAny&lt;int&gt;(),
2183 It.IsAny&lt;int&gt;(),
2184 It.IsAny&lt;int&gt;(),
2185 It.IsAny&lt;int&gt;()))
2186 .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);
2187 </code>
2188 </example>
2189 </member>
2190 <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})">
2191 <summary>
2192 Specifies a function that will calculate the value to return from the method,
2193 retrieving the arguments for the invocation.
2194 </summary>
2195 <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>
2196 <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>
2197 <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>
2198 <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>
2199 <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>
2200 <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>
2201 <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>
2202 <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>
2203 <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>
2204 <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>
2205 <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>
2206 <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>
2207 <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>
2208 <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>
2209 <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>
2210 <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>
2211 <param name="valueFunction">The function that will calculate the return value.</param>
2212 <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>
2213 <example>
2214 <para>
2215 The return value is calculated from the value of the actual method invocation arguments.
2216 Notice how the arguments are retrieved by simply declaring them as part of the lambda
2217 expression:
2218 </para>
2219 <code>
2220 mock.Setup(x => x.Execute(
2221 It.IsAny&lt;int&gt;(),
2222 It.IsAny&lt;int&gt;(),
2223 It.IsAny&lt;int&gt;(),
2224 It.IsAny&lt;int&gt;(),
2225 It.IsAny&lt;int&gt;(),
2226 It.IsAny&lt;int&gt;(),
2227 It.IsAny&lt;int&gt;(),
2228 It.IsAny&lt;int&gt;(),
2229 It.IsAny&lt;int&gt;(),
2230 It.IsAny&lt;int&gt;(),
2231 It.IsAny&lt;int&gt;(),
2232 It.IsAny&lt;int&gt;(),
2233 It.IsAny&lt;int&gt;(),
2234 It.IsAny&lt;int&gt;(),
2235 It.IsAny&lt;int&gt;(),
2236 It.IsAny&lt;int&gt;()))
2237 .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);
2238 </code>
2239 </example>
2240 </member>
2241 <member name="T:Moq.Language.ISetupSequentialResult`1">
2242 <summary>
2243 Language for ReturnSequence
2244 </summary>
2245 </member>
2246 <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">
2247 <summary>
2248 Returns value
2249 </summary>
2250 </member>
2251 <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">
2252 <summary>
2253 Throws an exception
2254 </summary>
2255 </member>
2256 <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">
2257 <summary>
2258 Throws an exception
2259 </summary>
2260 </member>
2261 <member name="M:Moq.Language.ISetupSequentialResult`1.CallBase">
2262 <summary>
2263 Calls original method
2264 </summary>
2265 </member>
2266 <member name="F:Moq.Linq.FluentMockVisitor.isFirst">
2267 <summary>
2268 The first method call or member access will be the
2269 last segment of the expression (depth-first traversal),
2270 which is the one we have to Setup rather than FluentMock.
2271 And the last one is the one we have to Mock.Get rather
2272 than FluentMock.
2273 </summary>
2274 </member>
2275 <member name="T:Moq.Mock">
2276 <summary>
2277 Base class for mocks and static helper class with methods that
2278 apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to
2279 retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.
2280 </summary>
2281 </member>
2282 <member name="M:Moq.Mock.Of``1">
2283 <summary>
2284 Creates an mock object of the indicated type.
2285 </summary>
2286 <typeparam name="T">The type of the mocked object.</typeparam>
2287 <returns>The mocked object created.</returns>
2288 </member>
2289 <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
2290 <summary>
2291 Creates an mock object of the indicated type.
2292 </summary>
2293 <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>
2294 <typeparam name="T">The type of the mocked object.</typeparam>
2295 <returns>The mocked object created.</returns>
2296 </member>
2297 <member name="M:Moq.Mock.#ctor">
2298 <summary>
2299 Initializes a new instance of the <see cref="T:Moq.Mock"/> class.
2300 </summary>
2301 </member>
2302 <member name="M:Moq.Mock.Get``1(``0)">
2303 <summary>
2304 Retrieves the mock object for the given object instance.
2305 </summary><typeparam name="T">
2306 Type of the mock to retrieve. Can be omitted as it's inferred
2307 from the object instance passed in as the <paramref name="mocked"/> instance.
2308 </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">
2309 The received <paramref name="mocked"/> instance
2310 was not created by Moq.
2311 </exception><example group="advanced">
2312 The following example shows how to add a new setup to an object
2313 instance which is not the original <see cref="T:Moq.Mock`1"/> but rather
2314 the object associated with it:
2315 <code>
2316 // Typed instance, not the mock, is retrieved from some test API.
2317 HttpContextBase context = GetMockContext();
2318
2319 // context.Request is the typed object from the "real" API
2320 // so in order to add a setup to it, we need to get
2321 // the mock that "owns" it
2322 Mock&lt;HttpRequestBase&gt; request = Mock.Get(context.Request);
2323 mock.Setup(req =&gt; req.AppRelativeCurrentExecutionFilePath)
2324 .Returns(tempUrl);
2325 </code>
2326 </example>
2327 </member>
2328 <member name="M:Moq.Mock.OnGetObject">
2329 <summary>
2330 Returns the mocked object value.
2331 </summary>
2332 </member>
2333 <member name="M:Moq.Mock.Verify">
2334 <summary>
2335 Verifies that all verifiable expectations have been met.
2336 </summary><example group="verification">
2337 This example sets up an expectation and marks it as verifiable. After
2338 the mock is used, a <c>Verify()</c> call is issued on the mock
2339 to ensure the method in the setup was invoked:
2340 <code>
2341 var mock = new Mock&lt;IWarehouse&gt;();
2342 this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
2343 ...
2344 // other test code
2345 ...
2346 // Will throw if the test code has didn't call HasInventory.
2347 this.Verify();
2348 </code>
2349 </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>
2350 </member>
2351 <member name="M:Moq.Mock.VerifyAll">
2352 <summary>
2353 Verifies all expectations regardless of whether they have
2354 been flagged as verifiable.
2355 </summary><example group="verification">
2356 This example sets up an expectation without marking it as verifiable. After
2357 the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock
2358 to ensure that all expectations are met:
2359 <code>
2360 var mock = new Mock&lt;IWarehouse&gt;();
2361 this.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Returns(true);
2362 ...
2363 // other test code
2364 ...
2365 // Will throw if the test code has didn't call HasInventory, even
2366 // that expectation was not marked as verifiable.
2367 this.VerifyAll();
2368 </code>
2369 </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception>
2370 </member>
2371 <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">
2372 <summary>
2373 Gets the interceptor target for the given expression and root mock,
2374 building the intermediate hierarchy of mock objects if necessary.
2375 </summary>
2376 </member>
2377 <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">
2378 <summary>
2379 Raises the associated event with the given
2380 event argument data.
2381 </summary>
2382 </member>
2383 <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">
2384 <summary>
2385 Raises the associated event with the given
2386 event argument data.
2387 </summary>
2388 </member>
2389 <member name="M:Moq.Mock.As``1">
2390 <summary>
2391 Adds an interface implementation to the mock,
2392 allowing setups to be specified for it.
2393 </summary><remarks>
2394 This method can only be called before the first use
2395 of the mock <see cref="P:Moq.Mock.Object"/> property, at which
2396 point the runtime type has already been generated
2397 and no more interfaces can be added to it.
2398 <para>
2399 Also, <typeparamref name="TInterface"/> must be an
2400 interface and not a class, which must be specified
2401 when creating the mock instead.
2402 </para>
2403 </remarks><exception cref="T:System.InvalidOperationException">
2404 The mock type
2405 has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.
2406 </exception><exception cref="T:System.ArgumentException">
2407 The <typeparamref name="TInterface"/> specified
2408 is not an interface.
2409 </exception><example>
2410 The following example creates a mock for the main interface
2411 and later adds <see cref="T:System.IDisposable"/> to it to verify
2412 it's called by the consumer code:
2413 <code>
2414 var mock = new Mock&lt;IProcessor&gt;();
2415 mock.Setup(x =&gt; x.Execute("ping"));
2416
2417 // add IDisposable interface
2418 var disposable = mock.As&lt;IDisposable&gt;();
2419 disposable.Setup(d =&gt; d.Dispose()).Verifiable();
2420 </code>
2421 </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>
2422 </member>
2423 <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">
2424 <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for=&quot;Mock.SetReturnDefault{TReturn}&quot;]/*"/>
2425 </member>
2426 <member name="P:Moq.Mock.Behavior">
2427 <summary>
2428 Behavior of the mock, according to the value set in the constructor.
2429 </summary>
2430 </member>
2431 <member name="P:Moq.Mock.CallBase">
2432 <summary>
2433 Whether the base member virtual implementation will be called
2434 for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
2435 </summary>
2436 </member>
2437 <member name="P:Moq.Mock.DefaultValue">
2438 <summary>
2439 Specifies the behavior to use when returning default values for
2440 unexpected invocations on loose mocks.
2441 </summary>
2442 </member>
2443 <member name="P:Moq.Mock.Object">
2444 <summary>
2445 Gets the mocked object instance.
2446 </summary>
2447 </member>
2448 <member name="P:Moq.Mock.MockedType">
2449 <summary>
2450 Retrieves the type of the mocked object, its generic type argument.
2451 This is used in the auto-mocking of hierarchy access.
2452 </summary>
2453 </member>
2454 <member name="P:Moq.Mock.DelegateInterfaceMethod">
2455 <summary>
2456 If this is a mock of a delegate, this property contains the method
2457 on the autogenerated interface so that we can convert setup + verify
2458 expressions on the delegate into expressions on the interface proxy.
2459 </summary>
2460 </member>
2461 <member name="P:Moq.Mock.IsDelegateMock">
2462 <summary>
2463 Allows to check whether expression conversion to the <see cref="P:Moq.Mock.DelegateInterfaceMethod"/>
2464 must be performed on the mock, without causing unnecessarily early initialization of
2465 the mock instance, which breaks As{T}.
2466 </summary>
2467 </member>
2468 <member name="P:Moq.Mock.DefaultValueProvider">
2469 <summary>
2470 Specifies the class that will determine the default
2471 value to return when invocations are made that
2472 have no setups and need to return a default
2473 value (for loose mocks).
2474 </summary>
2475 </member>
2476 <member name="P:Moq.Mock.ImplementedInterfaces">
2477 <summary>
2478 Exposes the list of extra interfaces implemented by the mock.
2479 </summary>
2480 </member>
2481 <member name="T:Moq.MockRepository">
2482 <summary>
2483 Utility repository class to use to construct multiple
2484 mocks when consistent verification is
2485 desired for all of them.
2486 </summary>
2487 <remarks>
2488 If multiple mocks will be created during a test, passing
2489 the desired <see cref="T:Moq.MockBehavior"/> (if different than the
2490 <see cref="F:Moq.MockBehavior.Default"/> or the one
2491 passed to the repository constructor) and later verifying each
2492 mock can become repetitive and tedious.
2493 <para>
2494 This repository class helps in that scenario by providing a
2495 simplified creation of multiple mocks with a default
2496 <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
2497 <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
2498 </para>
2499 </remarks>
2500 <example group="repository">
2501 The following is a straightforward example on how to
2502 create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:
2503 <code>
2504 var repository = new MockRepository(MockBehavior.Strict);
2505
2506 var foo = repository.Create&lt;IFoo&gt;();
2507 var bar = repository.Create&lt;IBar&gt;();
2508
2509 // no need to call Verifiable() on the setup
2510 // as we'll be validating all of them anyway.
2511 foo.Setup(f =&gt; f.Do());
2512 bar.Setup(b =&gt; b.Redo());
2513
2514 // exercise the mocks here
2515
2516 repository.VerifyAll();
2517 // At this point all setups are already checked
2518 // and an optional MockException might be thrown.
2519 // Note also that because the mocks are strict, any invocation
2520 // that doesn't have a matching setup will also throw a MockException.
2521 </code>
2522 The following examples shows how to setup the repository
2523 to create loose mocks and later verify only verifiable setups:
2524 <code>
2525 var repository = new MockRepository(MockBehavior.Loose);
2526
2527 var foo = repository.Create&lt;IFoo&gt;();
2528 var bar = repository.Create&lt;IBar&gt;();
2529
2530 // this setup will be verified when we verify the repository
2531 foo.Setup(f =&gt; f.Do()).Verifiable();
2532
2533 // this setup will NOT be verified
2534 foo.Setup(f =&gt; f.Calculate());
2535
2536 // this setup will be verified when we verify the repository
2537 bar.Setup(b =&gt; b.Redo()).Verifiable();
2538
2539 // exercise the mocks here
2540 // note that because the mocks are Loose, members
2541 // called in the interfaces for which no matching
2542 // setups exist will NOT throw exceptions,
2543 // and will rather return default values.
2544
2545 repository.Verify();
2546 // At this point verifiable setups are already checked
2547 // and an optional MockException might be thrown.
2548 </code>
2549 The following examples shows how to setup the repository with a
2550 default strict behavior, overriding that default for a
2551 specific mock:
2552 <code>
2553 var repository = new MockRepository(MockBehavior.Strict);
2554
2555 // this particular one we want loose
2556 var foo = repository.Create&lt;IFoo&gt;(MockBehavior.Loose);
2557 var bar = repository.Create&lt;IBar&gt;();
2558
2559 // specify setups
2560
2561 // exercise the mocks here
2562
2563 repository.Verify();
2564 </code>
2565 </example>
2566 <seealso cref="T:Moq.MockBehavior"/>
2567 </member>
2568 <member name="T:Moq.MockFactory">
2569 <summary>
2570 Utility factory class to use to construct multiple
2571 mocks when consistent verification is
2572 desired for all of them.
2573 </summary>
2574 <remarks>
2575 If multiple mocks will be created during a test, passing
2576 the desired <see cref="T:Moq.MockBehavior"/> (if different than the
2577 <see cref="F:Moq.MockBehavior.Default"/> or the one
2578 passed to the factory constructor) and later verifying each
2579 mock can become repetitive and tedious.
2580 <para>
2581 This factory class helps in that scenario by providing a
2582 simplified creation of multiple mocks with a default
2583 <see cref="T:Moq.MockBehavior"/> (unless overriden by calling
2584 <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.
2585 </para>
2586 </remarks>
2587 <example group="factory">
2588 The following is a straightforward example on how to
2589 create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:
2590 <code>
2591 var factory = new MockFactory(MockBehavior.Strict);
2592
2593 var foo = factory.Create&lt;IFoo&gt;();
2594 var bar = factory.Create&lt;IBar&gt;();
2595
2596 // no need to call Verifiable() on the setup
2597 // as we'll be validating all of them anyway.
2598 foo.Setup(f =&gt; f.Do());
2599 bar.Setup(b =&gt; b.Redo());
2600
2601 // exercise the mocks here
2602
2603 factory.VerifyAll();
2604 // At this point all setups are already checked
2605 // and an optional MockException might be thrown.
2606 // Note also that because the mocks are strict, any invocation
2607 // that doesn't have a matching setup will also throw a MockException.
2608 </code>
2609 The following examples shows how to setup the factory
2610 to create loose mocks and later verify only verifiable setups:
2611 <code>
2612 var factory = new MockFactory(MockBehavior.Loose);
2613
2614 var foo = factory.Create&lt;IFoo&gt;();
2615 var bar = factory.Create&lt;IBar&gt;();
2616
2617 // this setup will be verified when we verify the factory
2618 foo.Setup(f =&gt; f.Do()).Verifiable();
2619
2620 // this setup will NOT be verified
2621 foo.Setup(f =&gt; f.Calculate());
2622
2623 // this setup will be verified when we verify the factory
2624 bar.Setup(b =&gt; b.Redo()).Verifiable();
2625
2626 // exercise the mocks here
2627 // note that because the mocks are Loose, members
2628 // called in the interfaces for which no matching
2629 // setups exist will NOT throw exceptions,
2630 // and will rather return default values.
2631
2632 factory.Verify();
2633 // At this point verifiable setups are already checked
2634 // and an optional MockException might be thrown.
2635 </code>
2636 The following examples shows how to setup the factory with a
2637 default strict behavior, overriding that default for a
2638 specific mock:
2639 <code>
2640 var factory = new MockFactory(MockBehavior.Strict);
2641
2642 // this particular one we want loose
2643 var foo = factory.Create&lt;IFoo&gt;(MockBehavior.Loose);
2644 var bar = factory.Create&lt;IBar&gt;();
2645
2646 // specify setups
2647
2648 // exercise the mocks here
2649
2650 factory.Verify();
2651 </code>
2652 </example>
2653 <seealso cref="T:Moq.MockBehavior"/>
2654 </member>
2655 <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">
2656 <summary>
2657 Initializes the factory with the given <paramref name="defaultBehavior"/>
2658 for newly created mocks from the factory.
2659 </summary>
2660 <param name="defaultBehavior">The behavior to use for mocks created
2661 using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden
2662 by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
2663 </member>
2664 <member name="M:Moq.MockFactory.Create``1">
2665 <summary>
2666 Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
2667 specified at factory construction time.
2668 </summary>
2669 <typeparam name="T">Type to mock.</typeparam>
2670 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
2671 <example ignore="true">
2672 <code>
2673 var factory = new MockFactory(MockBehavior.Strict);
2674
2675 var foo = factory.Create&lt;IFoo&gt;();
2676 // use mock on tests
2677
2678 factory.VerifyAll();
2679 </code>
2680 </example>
2681 </member>
2682 <member name="M:Moq.MockFactory.Create``1(System.Object[])">
2683 <summary>
2684 Creates a new mock with the default <see cref="T:Moq.MockBehavior"/>
2685 specified at factory construction time and with the
2686 the given constructor arguments for the class.
2687 </summary>
2688 <remarks>
2689 The mock will try to find the best match constructor given the
2690 constructor arguments, and invoke that to initialize the instance.
2691 This applies only to classes, not interfaces.
2692 </remarks>
2693 <typeparam name="T">Type to mock.</typeparam>
2694 <param name="args">Constructor arguments for mocked classes.</param>
2695 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
2696 <example ignore="true">
2697 <code>
2698 var factory = new MockFactory(MockBehavior.Default);
2699
2700 var mock = factory.Create&lt;MyBase&gt;("Foo", 25, true);
2701 // use mock on tests
2702
2703 factory.Verify();
2704 </code>
2705 </example>
2706 </member>
2707 <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">
2708 <summary>
2709 Creates a new mock with the given <paramref name="behavior"/>.
2710 </summary>
2711 <typeparam name="T">Type to mock.</typeparam>
2712 <param name="behavior">Behavior to use for the mock, which overrides
2713 the default behavior specified at factory construction time.</param>
2714 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
2715 <example group="factory">
2716 The following example shows how to create a mock with a different
2717 behavior to that specified as the default for the factory:
2718 <code>
2719 var factory = new MockFactory(MockBehavior.Strict);
2720
2721 var foo = factory.Create&lt;IFoo&gt;(MockBehavior.Loose);
2722 </code>
2723 </example>
2724 </member>
2725 <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">
2726 <summary>
2727 Creates a new mock with the given <paramref name="behavior"/>
2728 and with the the given constructor arguments for the class.
2729 </summary>
2730 <remarks>
2731 The mock will try to find the best match constructor given the
2732 constructor arguments, and invoke that to initialize the instance.
2733 This applies only to classes, not interfaces.
2734 </remarks>
2735 <typeparam name="T">Type to mock.</typeparam>
2736 <param name="behavior">Behavior to use for the mock, which overrides
2737 the default behavior specified at factory construction time.</param>
2738 <param name="args">Constructor arguments for mocked classes.</param>
2739 <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>
2740 <example group="factory">
2741 The following example shows how to create a mock with a different
2742 behavior to that specified as the default for the factory, passing
2743 constructor arguments:
2744 <code>
2745 var factory = new MockFactory(MockBehavior.Default);
2746
2747 var mock = factory.Create&lt;MyBase&gt;(MockBehavior.Strict, "Foo", 25, true);
2748 </code>
2749 </example>
2750 </member>
2751 <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">
2752 <summary>
2753 Implements creation of a new mock within the factory.
2754 </summary>
2755 <typeparam name="T">Type to mock.</typeparam>
2756 <param name="behavior">The behavior for the new mock.</param>
2757 <param name="args">Optional arguments for the construction of the mock.</param>
2758 </member>
2759 <member name="M:Moq.MockFactory.Verify">
2760 <summary>
2761 Verifies all verifiable expectations on all mocks created
2762 by this factory.
2763 </summary>
2764 <seealso cref="M:Moq.Mock.Verify"/>
2765 <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
2766 </member>
2767 <member name="M:Moq.MockFactory.VerifyAll">
2768 <summary>
2769 Verifies all verifiable expectations on all mocks created
2770 by this factory.
2771 </summary>
2772 <seealso cref="M:Moq.Mock.Verify"/>
2773 <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>
2774 </member>
2775 <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">
2776 <summary>
2777 Invokes <paramref name="verifyAction"/> for each mock
2778 in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting
2779 <see cref="T:Moq.MockVerificationException"/> that might be
2780 thrown from the action.
2781 </summary>
2782 <param name="verifyAction">The action to execute against
2783 each mock.</param>
2784 </member>
2785 <member name="P:Moq.MockFactory.CallBase">
2786 <summary>
2787 Whether the base member virtual implementation will be called
2788 for mocked classes if no setup is matched. Defaults to <see langword="false"/>.
2789 </summary>
2790 </member>
2791 <member name="P:Moq.MockFactory.DefaultValue">
2792 <summary>
2793 Specifies the behavior to use when returning default values for
2794 unexpected invocations on loose mocks.
2795 </summary>
2796 </member>
2797 <member name="P:Moq.MockFactory.Mocks">
2798 <summary>
2799 Gets the mocks that have been created by this factory and
2800 that will get verified together.
2801 </summary>
2802 </member>
2803 <member name="M:Moq.MockRepository.Of``1">
2804 <summary>
2805 Access the universe of mocks of the given type, to retrieve those
2806 that behave according to the LINQ query specification.
2807 </summary>
2808 <typeparam name="T">The type of the mocked object to query.</typeparam>
2809 </member>
2810 <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
2811 <summary>
2812 Access the universe of mocks of the given type, to retrieve those
2813 that behave according to the LINQ query specification.
2814 </summary>
2815 <param name="specification">The predicate with the setup expressions.</param>
2816 <typeparam name="T">The type of the mocked object to query.</typeparam>
2817 </member>
2818 <member name="M:Moq.MockRepository.OneOf``1">
2819 <summary>
2820 Creates an mock object of the indicated type.
2821 </summary>
2822 <typeparam name="T">The type of the mocked object.</typeparam>
2823 <returns>The mocked object created.</returns>
2824 </member>
2825 <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
2826 <summary>
2827 Creates an mock object of the indicated type.
2828 </summary>
2829 <param name="specification">The predicate with the setup expressions.</param>
2830 <typeparam name="T">The type of the mocked object.</typeparam>
2831 <returns>The mocked object created.</returns>
2832 </member>
2833 <member name="M:Moq.MockRepository.CreateMockQuery``1">
2834 <summary>
2835 Creates the mock query with the underlying queriable implementation.
2836 </summary>
2837 </member>
2838 <member name="M:Moq.MockRepository.CreateQueryable``1">
2839 <summary>
2840 Wraps the enumerator inside a queryable.
2841 </summary>
2842 </member>
2843 <member name="M:Moq.MockRepository.CreateMocks``1">
2844 <summary>
2845 Method that is turned into the actual call from .Query{T}, to
2846 transform the queryable query into a normal enumerable query.
2847 This method is never used directly by consumers.
2848 </summary>
2849 </member>
2850 <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">
2851 <summary>
2852 Initializes the repository with the given <paramref name="defaultBehavior"/>
2853 for newly created mocks from the repository.
2854 </summary>
2855 <param name="defaultBehavior">The behavior to use for mocks created
2856 using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden
2857 by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>
2858 </member>
2859 <member name="T:Moq.EmptyDefaultValueProvider">
2860 <summary>
2861 A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
2862 for invocations that do not have setups or return values, with loose mocks.
2863 This is the default behavior for a mock.
2864 </summary>
2865 </member>
2866 <member name="T:Moq.IDefaultValueProvider">
2867 <summary>
2868 Interface to be implemented by classes that determine the
2869 default value of non-expected invocations.
2870 </summary>
2871 </member>
2872 <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">
2873 <summary>
2874 Defines the default value to return in all the methods returning <typeparamref name="T"/>.
2875 </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>
2876 </member>
2877 <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">
2878 <summary>
2879 Provides a value for the given member and arguments.
2880 </summary><param name="member">
2881 The member to provide a default value for.
2882 </param>
2883 </member>
2884 <member name="T:Moq.ExpressionStringBuilder">
2885 <summary>
2886 The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable
2887 string representation for the failure message.
2888 </summary>
2889 </member>
2890 <member name="T:Moq.Language.Flow.ICallbackResult">
2891 <summary>
2892 Implements the fluent API.
2893 </summary>
2894 </member>
2895 <member name="T:Moq.Language.IThrows">
2896 <summary>
2897 Defines the <c>Throws</c> verb.
2898 </summary>
2899 </member>
2900 <member name="M:Moq.Language.IThrows.Throws(System.Exception)">
2901 <summary>
2902 Specifies the exception to throw when the method is invoked.
2903 </summary>
2904 <param name="exception">Exception instance to throw.</param>
2905 <example>
2906 This example shows how to throw an exception when the method is
2907 invoked with an empty string argument:
2908 <code>
2909 mock.Setup(x =&gt; x.Execute(""))
2910 .Throws(new ArgumentException());
2911 </code>
2912 </example>
2913 </member>
2914 <member name="M:Moq.Language.IThrows.Throws``1">
2915 <summary>
2916 Specifies the type of exception to throw when the method is invoked.
2917 </summary>
2918 <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>
2919 <example>
2920 This example shows how to throw an exception when the method is
2921 invoked with an empty string argument:
2922 <code>
2923 mock.Setup(x =&gt; x.Execute(""))
2924 .Throws&lt;ArgumentException&gt;();
2925 </code>
2926 </example>
2927 </member>
2928 <member name="T:Moq.Language.Flow.IThrowsResult">
2929 <summary>
2930 Implements the fluent API.
2931 </summary>
2932 </member>
2933 <member name="T:Moq.Language.IOccurrence">
2934 <summary>
2935 Defines occurrence members to constraint setups.
2936 </summary>
2937 </member>
2938 <member name="M:Moq.Language.IOccurrence.AtMostOnce">
2939 <summary>
2940 The expected invocation can happen at most once.
2941 </summary>
2942 <example>
2943 <code>
2944 var mock = new Mock&lt;ICommand&gt;();
2945 mock.Setup(foo => foo.Execute("ping"))
2946 .AtMostOnce();
2947 </code>
2948 </example>
2949 </member>
2950 <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">
2951 <summary>
2952 The expected invocation can happen at most specified number of times.
2953 </summary>
2954 <param name="callCount">The number of times to accept calls.</param>
2955 <example>
2956 <code>
2957 var mock = new Mock&lt;ICommand&gt;();
2958 mock.Setup(foo => foo.Execute("ping"))
2959 .AtMost( 5 );
2960 </code>
2961 </example>
2962 </member>
2963 <member name="T:Moq.Language.IVerifies">
2964 <summary>
2965 Defines the <c>Verifiable</c> verb.
2966 </summary>
2967 </member>
2968 <member name="M:Moq.Language.IVerifies.Verifiable">
2969 <summary>
2970 Marks the expectation as verifiable, meaning that a call
2971 to <see cref="M:Moq.Mock.Verify"/> will check if this particular
2972 expectation was met.
2973 </summary>
2974 <example>
2975 The following example marks the expectation as verifiable:
2976 <code>
2977 mock.Expect(x =&gt; x.Execute("ping"))
2978 .Returns(true)
2979 .Verifiable();
2980 </code>
2981 </example>
2982 </member>
2983 <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">
2984 <summary>
2985 Marks the expectation as verifiable, meaning that a call
2986 to <see cref="M:Moq.Mock.Verify"/> will check if this particular
2987 expectation was met, and specifies a message for failures.
2988 </summary>
2989 <example>
2990 The following example marks the expectation as verifiable:
2991 <code>
2992 mock.Expect(x =&gt; x.Execute("ping"))
2993 .Returns(true)
2994 .Verifiable("Ping should be executed always!");
2995 </code>
2996 </example>
2997 </member>
2998 <member name="T:Moq.Language.Flow.ISetup`1">
2999 <summary>
3000 Implements the fluent API.
3001 </summary>
3002 </member>
3003 <member name="T:Moq.MethodCallReturn">
3004 <devdoc>
3005 We need this non-generics base class so that
3006 we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from
3007 generic code.
3008 </devdoc>
3009 </member>
3010 <member name="T:Moq.Language.Flow.ISetup`2">
3011 <summary>
3012 Implements the fluent API.
3013 </summary>
3014 </member>
3015 <member name="T:Moq.Language.Flow.IReturnsThrows`2">
3016 <summary>
3017 Implements the fluent API.
3018 </summary>
3019 </member>
3020 <member name="T:Moq.Language.Flow.ISetupGetter`2">
3021 <summary>
3022 Implements the fluent API.
3023 </summary>
3024 </member>
3025 <member name="T:Moq.Language.ICallbackGetter`2">
3026 <summary>
3027 Defines the <c>Callback</c> verb for property getter setups.
3028 </summary>
3029 <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>
3030 <typeparam name="TMock">Mocked type.</typeparam>
3031 <typeparam name="TProperty">Type of the property.</typeparam>
3032 </member>
3033 <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">
3034 <summary>
3035 Specifies a callback to invoke when the property is retrieved.
3036 </summary>
3037 <param name="action">Callback method to invoke.</param>
3038 <example>
3039 Invokes the given callback with the property value being set.
3040 <code>
3041 mock.SetupGet(x => x.Suspended)
3042 .Callback(() => called = true)
3043 .Returns(true);
3044 </code>
3045 </example>
3046 </member>
3047 <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">
3048 <summary>
3049 Implements the fluent API.
3050 </summary>
3051 </member>
3052 <member name="T:Moq.Language.IReturnsGetter`2">
3053 <summary>
3054 Defines the <c>Returns</c> verb for property get setups.
3055 </summary>
3056 <typeparam name="TMock">Mocked type.</typeparam>
3057 <typeparam name="TProperty">Type of the property.</typeparam>
3058 </member>
3059 <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">
3060 <summary>
3061 Specifies the value to return.
3062 </summary>
3063 <param name="value">The value to return, or <see langword="null"/>.</param>
3064 <example>
3065 Return a <c>true</c> value from the property getter call:
3066 <code>
3067 mock.SetupGet(x => x.Suspended)
3068 .Returns(true);
3069 </code>
3070 </example>
3071 </member>
3072 <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">
3073 <summary>
3074 Specifies a function that will calculate the value to return for the property.
3075 </summary>
3076 <param name="valueFunction">The function that will calculate the return value.</param>
3077 <example>
3078 Return a calculated value when the property is retrieved:
3079 <code>
3080 mock.SetupGet(x => x.Suspended)
3081 .Returns(() => returnValues[0]);
3082 </code>
3083 The lambda expression to retrieve the return value is lazy-executed,
3084 meaning that its value may change depending on the moment the property
3085 is retrieved and the value the <c>returnValues</c> array has at
3086 that moment.
3087 </example>
3088 </member>
3089 <member name="M:Moq.Language.IReturnsGetter`2.CallBase">
3090 <summary>
3091 Calls the real property of the object and returns its return value.
3092 </summary>
3093 <returns>The value calculated by the real property of the object.</returns>
3094 </member>
3095 <member name="T:Moq.Language.Flow.IReturnsResult`1">
3096 <summary>
3097 Implements the fluent API.
3098 </summary>
3099 </member>
3100 <member name="T:System.Action`5">
3101 <summary>
3102 Encapsulates a method that has five parameters and does not return a value.
3103 </summary>
3104 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3105 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3106 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3107 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3108 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3109 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3110 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3111 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3112 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3113 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3114 </member>
3115 <member name="T:System.Func`6">
3116 <summary>
3117 Encapsulates a method that has five parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3118 </summary>
3119 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3120 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3121 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3122 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3123 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3124 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3125 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3126 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3127 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3128 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3129 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3130 <return>The return value of the method that this delegate encapsulates.</return>
3131 </member>
3132 <member name="T:System.Action`6">
3133 <summary>
3134 Encapsulates a method that has six parameters and does not return a value.
3135 </summary>
3136 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3137 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3138 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3139 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3140 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3141 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3142 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3143 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3144 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3145 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3146 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3147 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3148 </member>
3149 <member name="T:System.Func`7">
3150 <summary>
3151 Encapsulates a method that has six parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3152 </summary>
3153 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3154 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3155 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3156 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3157 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3158 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3159 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3160 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3161 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3162 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3163 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3164 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3165 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3166 <return>The return value of the method that this delegate encapsulates.</return>
3167 </member>
3168 <member name="T:System.Action`7">
3169 <summary>
3170 Encapsulates a method that has seven parameters and does not return a value.
3171 </summary>
3172 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3173 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3174 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3175 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3176 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3177 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3178 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3179 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3180 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3181 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3182 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3183 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3184 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3185 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3186 </member>
3187 <member name="T:System.Func`8">
3188 <summary>
3189 Encapsulates a method that has seven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3190 </summary>
3191 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3192 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3193 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3194 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3195 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3196 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3197 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3198 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3199 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3200 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3201 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3202 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3203 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3204 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3205 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3206 <return>The return value of the method that this delegate encapsulates.</return>
3207 </member>
3208 <member name="T:System.Action`8">
3209 <summary>
3210 Encapsulates a method that has eight parameters and does not return a value.
3211 </summary>
3212 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3213 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3214 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3215 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3216 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3217 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3218 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3219 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3220 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3221 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3222 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3223 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3224 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3225 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3226 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3227 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3228 </member>
3229 <member name="T:System.Func`9">
3230 <summary>
3231 Encapsulates a method that has eight parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3232 </summary>
3233 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3234 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3235 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3236 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3237 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3238 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3239 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3240 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3241 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3242 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3243 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3244 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3245 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3246 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3247 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3248 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3249 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3250 <return>The return value of the method that this delegate encapsulates.</return>
3251 </member>
3252 <member name="T:System.Action`9">
3253 <summary>
3254 Encapsulates a method that has nine parameters and does not return a value.
3255 </summary>
3256 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3257 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3258 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3259 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3260 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3261 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3262 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3263 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3264 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3265 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3266 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3267 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3268 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3269 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3270 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3271 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3272 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3273 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3274 </member>
3275 <member name="T:System.Func`10">
3276 <summary>
3277 Encapsulates a method that has nine parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3278 </summary>
3279 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3280 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3281 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3282 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3283 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3284 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3285 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3286 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3287 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3288 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3289 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3290 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3291 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3292 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3293 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3294 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3295 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3296 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3297 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3298 <return>The return value of the method that this delegate encapsulates.</return>
3299 </member>
3300 <member name="T:System.Action`10">
3301 <summary>
3302 Encapsulates a method that has ten parameters and does not return a value.
3303 </summary>
3304 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3305 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3306 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3307 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3308 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3309 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3310 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3311 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3312 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3313 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3314 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3315 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3316 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3317 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3318 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3319 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3320 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3321 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3322 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3323 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3324 </member>
3325 <member name="T:System.Func`11">
3326 <summary>
3327 Encapsulates a method that has ten parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3328 </summary>
3329 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3330 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3331 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3332 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3333 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3334 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3335 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3336 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3337 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3338 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3339 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3340 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3341 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3342 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3343 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3344 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3345 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3346 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3347 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3348 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3349 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3350 <return>The return value of the method that this delegate encapsulates.</return>
3351 </member>
3352 <member name="T:System.Action`11">
3353 <summary>
3354 Encapsulates a method that has eleven parameters and does not return a value.
3355 </summary>
3356 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3357 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3358 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3359 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3360 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3361 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3362 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3363 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3364 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3365 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3366 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3367 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3368 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3369 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3370 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3371 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3372 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3373 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3374 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3375 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3376 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3377 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3378 </member>
3379 <member name="T:System.Func`12">
3380 <summary>
3381 Encapsulates a method that has eleven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3382 </summary>
3383 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3384 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3385 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3386 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3387 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3388 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3389 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3390 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3391 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3392 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3393 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3394 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3395 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3396 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3397 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3398 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3399 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3400 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3401 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3402 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3403 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3404 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3405 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3406 <return>The return value of the method that this delegate encapsulates.</return>
3407 </member>
3408 <member name="T:System.Action`12">
3409 <summary>
3410 Encapsulates a method that has twelve parameters and does not return a value.
3411 </summary>
3412 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3413 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3414 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3415 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3416 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3417 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3418 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3419 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3420 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3421 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3422 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3423 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3424 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3425 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3426 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3427 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3428 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3429 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3430 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3431 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3432 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3433 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3434 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3435 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3436 </member>
3437 <member name="T:System.Func`13">
3438 <summary>
3439 Encapsulates a method that has twelve parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3440 </summary>
3441 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3442 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3443 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3444 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3445 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3446 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3447 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3448 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3449 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3450 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3451 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3452 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3453 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3454 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3455 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3456 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3457 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3458 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3459 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3460 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3461 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3462 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3463 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3464 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3465 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3466 <return>The return value of the method that this delegate encapsulates.</return>
3467 </member>
3468 <member name="T:System.Action`13">
3469 <summary>
3470 Encapsulates a method that has thirteen parameters and does not return a value.
3471 </summary>
3472 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3473 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3474 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3475 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3476 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3477 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3478 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3479 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3480 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3481 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3482 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3483 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3484 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3485 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3486 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3487 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3488 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3489 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3490 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3491 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3492 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3493 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3494 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3495 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3496 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3497 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3498 </member>
3499 <member name="T:System.Func`14">
3500 <summary>
3501 Encapsulates a method that has thirteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3502 </summary>
3503 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3504 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3505 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3506 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3507 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3508 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3509 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3510 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3511 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3512 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3513 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3514 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3515 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3516 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3517 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3518 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3519 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3520 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3521 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3522 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3523 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3524 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3525 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3526 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3527 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3528 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3529 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3530 <return>The return value of the method that this delegate encapsulates.</return>
3531 </member>
3532 <member name="T:System.Action`14">
3533 <summary>
3534 Encapsulates a method that has fourteen parameters and does not return a value.
3535 </summary>
3536 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3537 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3538 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3539 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3540 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3541 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3542 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3543 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3544 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3545 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3546 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3547 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3548 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3549 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3550 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3551 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3552 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3553 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3554 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3555 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3556 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3557 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3558 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3559 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3560 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3561 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3562 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3563 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3564 </member>
3565 <member name="T:System.Func`15">
3566 <summary>
3567 Encapsulates a method that has fourteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3568 </summary>
3569 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3570 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3571 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3572 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3573 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3574 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3575 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3576 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3577 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3578 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3579 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3580 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3581 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3582 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3583 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3584 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3585 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3586 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3587 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3588 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3589 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3590 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3591 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3592 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3593 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3594 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3595 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3596 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3597 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3598 <return>The return value of the method that this delegate encapsulates.</return>
3599 </member>
3600 <member name="T:System.Action`15">
3601 <summary>
3602 Encapsulates a method that has fifteen parameters and does not return a value.
3603 </summary>
3604 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3605 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3606 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3607 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3608 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3609 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3610 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3611 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3612 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3613 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3614 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3615 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3616 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3617 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3618 <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
3619 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3620 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3621 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3622 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3623 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3624 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3625 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3626 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3627 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3628 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3629 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3630 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3631 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3632 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3633 <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
3634 </member>
3635 <member name="T:System.Func`16">
3636 <summary>
3637 Encapsulates a method that has fifteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3638 </summary>
3639 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3640 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3641 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3642 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3643 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3644 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3645 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3646 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3647 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3648 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3649 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3650 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3651 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3652 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3653 <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
3654 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3655 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3656 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3657 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3658 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3659 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3660 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3661 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3662 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3663 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3664 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3665 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3666 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3667 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3668 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3669 <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
3670 <return>The return value of the method that this delegate encapsulates.</return>
3671 </member>
3672 <member name="T:System.Action`16">
3673 <summary>
3674 Encapsulates a method that has sixteen parameters and does not return a value.
3675 </summary>
3676 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3677 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3678 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3679 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3680 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3681 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3682 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3683 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3684 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3685 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3686 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3687 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3688 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3689 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3690 <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
3691 <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>
3692 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3693 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3694 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3695 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3696 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3697 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3698 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3699 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3700 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3701 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3702 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3703 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3704 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3705 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3706 <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
3707 <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>
3708 </member>
3709 <member name="T:System.Func`17">
3710 <summary>
3711 Encapsulates a method that has sixteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.
3712 </summary>
3713 <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>
3714 <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>
3715 <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>
3716 <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>
3717 <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>
3718 <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>
3719 <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>
3720 <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>
3721 <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>
3722 <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>
3723 <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>
3724 <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>
3725 <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>
3726 <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>
3727 <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>
3728 <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>
3729 <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>
3730 <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>
3731 <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>
3732 <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>
3733 <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>
3734 <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>
3735 <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>
3736 <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>
3737 <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>
3738 <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>
3739 <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>
3740 <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>
3741 <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>
3742 <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>
3743 <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>
3744 <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>
3745 <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>
3746 <return>The return value of the method that this delegate encapsulates.</return>
3747 </member>
3748 <member name="T:Moq.MockExtensions">
3749 <summary>
3750 Provides additional methods on mocks.
3751 </summary>
3752 <remarks>
3753 Those methods are useful for Testeroids support.
3754 </remarks>
3755 </member>
3756 <member name="M:Moq.MockExtensions.ResetCalls(Moq.Mock)">
3757 <summary>
3758 Resets the calls previously made on the specified mock.
3759 </summary>
3760 <param name="mock">The mock whose calls need to be reset.</param>
3761 </member>
3762 <member name="T:Moq.MockSequence">
3763 <summary>
3764 Helper class to setup a full trace between many mocks
3765 </summary>
3766 </member>
3767 <member name="M:Moq.MockSequence.#ctor">
3768 <summary>
3769 Initialize a trace setup
3770 </summary>
3771 </member>
3772 <member name="P:Moq.MockSequence.Cyclic">
3773 <summary>
3774 Allow sequence to be repeated
3775 </summary>
3776 </member>
3777 <member name="T:Moq.MockSequenceHelper">
3778 <summary>
3779 define nice api
3780 </summary>
3781 </member>
3782 <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">
3783 <summary>
3784 Perform an expectation in the trace.
3785 </summary>
3786 </member>
3787 <member name="T:Moq.MatcherAttribute">
3788 <summary>
3789 Marks a method as a matcher, which allows complete replacement
3790 of the built-in <see cref="T:Moq.It"/> class with your own argument
3791 matching rules.
3792 </summary>
3793 <remarks>
3794 <b>This feature has been deprecated in favor of the new
3795 and simpler <see cref="T:Moq.Match`1"/>.
3796 </b>
3797 <para>
3798 The argument matching is used to determine whether a concrete
3799 invocation in the mock matches a given setup. This
3800 matching mechanism is fully extensible.
3801 </para>
3802 <para>
3803 There are two parts of a matcher: the compiler matcher
3804 and the runtime matcher.
3805 <list type="bullet">
3806 <item>
3807 <term>Compiler matcher</term>
3808 <description>Used to satisfy the compiler requirements for the
3809 argument. Needs to be a method optionally receiving any arguments
3810 you might need for the matching, but with a return type that
3811 matches that of the argument.
3812 <para>
3813 Let's say I want to match a lists of orders that contains
3814 a particular one. I might create a compiler matcher like the following:
3815 </para>
3816 <code>
3817 public static class Orders
3818 {
3819 [Matcher]
3820 public static IEnumerable&lt;Order&gt; Contains(Order order)
3821 {
3822 return null;
3823 }
3824 }
3825 </code>
3826 Now we can invoke this static method instead of an argument in an
3827 invocation:
3828 <code>
3829 var order = new Order { ... };
3830 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
3831
3832 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
3833 .Throws&lt;ArgumentException&gt;();
3834 </code>
3835 Note that the return value from the compiler matcher is irrelevant.
3836 This method will never be called, and is just used to satisfy the
3837 compiler and to signal Moq that this is not a method that we want
3838 to be invoked at runtime.
3839 </description>
3840 </item>
3841 <item>
3842 <term>Runtime matcher</term>
3843 <description>
3844 The runtime matcher is the one that will actually perform evaluation
3845 when the test is run, and is defined by convention to have the
3846 same signature as the compiler matcher, but where the return
3847 value is the first argument to the call, which contains the
3848 object received by the actual invocation at runtime:
3849 <code>
3850 public static bool Contains(IEnumerable&lt;Order&gt; orders, Order order)
3851 {
3852 return orders.Contains(order);
3853 }
3854 </code>
3855 At runtime, the mocked method will be invoked with a specific
3856 list of orders. This value will be passed to this runtime
3857 matcher as the first argument, while the second argument is the
3858 one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).
3859 <para>
3860 The boolean returned determines whether the given argument has been
3861 matched. If all arguments to the expected method are matched, then
3862 the setup matches and is evaluated.
3863 </para>
3864 </description>
3865 </item>
3866 </list>
3867 </para>
3868 Using this extensible infrastructure, you can easily replace the entire
3869 <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the
3870 typical (and annoying) lengthy expressions that result when you have
3871 multiple arguments that use generics.
3872 </remarks>
3873 <example>
3874 The following is the complete example explained above:
3875 <code>
3876 public static class Orders
3877 {
3878 [Matcher]
3879 public static IEnumerable&lt;Order&gt; Contains(Order order)
3880 {
3881 return null;
3882 }
3883
3884 public static bool Contains(IEnumerable&lt;Order&gt; orders, Order order)
3885 {
3886 return orders.Contains(order);
3887 }
3888 }
3889 </code>
3890 And the concrete test using this matcher:
3891 <code>
3892 var order = new Order { ... };
3893 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
3894
3895 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
3896 .Throws&lt;ArgumentException&gt;();
3897
3898 // use mock, invoke Save, and have the matcher filter.
3899 </code>
3900 </example>
3901 </member>
3902 <member name="T:Moq.Mock`1">
3903 <summary>
3904 Provides a mock implementation of <typeparamref name="T"/>.
3905 </summary><remarks>
3906 Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
3907 <para>
3908 The behavior of the mock with regards to the setups and the actual calls is determined
3909 by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>
3910 constructor.
3911 </para>
3912 </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">
3913 The following example shows establishing setups with specific values
3914 for method invocations:
3915 <code>
3916 // Arrange
3917 var order = new Order(TALISKER, 50);
3918 var mock = new Mock&lt;IWarehouse&gt;();
3919
3920 mock.Setup(x =&gt; x.HasInventory(TALISKER, 50)).Returns(true);
3921
3922 // Act
3923 order.Fill(mock.Object);
3924
3925 // Assert
3926 Assert.True(order.IsFilled);
3927 </code>
3928 The following example shows how to use the <see cref="T:Moq.It"/> class
3929 to specify conditions for arguments instead of specific values:
3930 <code>
3931 // Arrange
3932 var order = new Order(TALISKER, 50);
3933 var mock = new Mock&lt;IWarehouse&gt;();
3934
3935 // shows how to expect a value within a range
3936 mock.Setup(x =&gt; x.HasInventory(
3937 It.IsAny&lt;string&gt;(),
3938 It.IsInRange(0, 100, Range.Inclusive)))
3939 .Returns(false);
3940
3941 // shows how to throw for unexpected calls.
3942 mock.Setup(x =&gt; x.Remove(
3943 It.IsAny&lt;string&gt;(),
3944 It.IsAny&lt;int&gt;()))
3945 .Throws(new InvalidOperationException());
3946
3947 // Act
3948 order.Fill(mock.Object);
3949
3950 // Assert
3951 Assert.False(order.IsFilled);
3952 </code>
3953 </example>
3954 </member>
3955 <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">
3956 <summary>
3957 Obsolete.
3958 </summary>
3959 </member>
3960 <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
3961 <summary>
3962 Obsolete.
3963 </summary>
3964 </member>
3965 <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
3966 <summary>
3967 Obsolete.
3968 </summary>
3969 </member>
3970 <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
3971 <summary>
3972 Obsolete.
3973 </summary>
3974 </member>
3975 <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
3976 <summary>
3977 Obsolete.
3978 </summary>
3979 </member>
3980 <member name="M:Moq.Mock`1.#ctor(System.Boolean)">
3981 <summary>
3982 Ctor invoked by AsTInterface exclusively.
3983 </summary>
3984 </member>
3985 <member name="M:Moq.Mock`1.#ctor">
3986 <summary>
3987 Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.
3988 </summary><example>
3989 <code>var mock = new Mock&lt;IFormatProvider&gt;();</code>
3990 </example>
3991 </member>
3992 <member name="M:Moq.Mock`1.#ctor(System.Object[])">
3993 <summary>
3994 Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with
3995 the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)
3996 </summary><remarks>
3997 The mock will try to find the best match constructor given the constructor arguments, and invoke that
3998 to initialize the instance. This applies only for classes, not interfaces.
3999 </remarks><example>
4000 <code>var mock = new Mock&lt;MyProvider&gt;(someArgument, 25);</code>
4001 </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>
4002 </member>
4003 <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">
4004 <summary>
4005 Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.
4006 </summary><example>
4007 <code>var mock = new Mock&lt;IFormatProvider&gt;(MockBehavior.Relaxed);</code>
4008 </example><param name="behavior">Behavior of the mock.</param>
4009 </member>
4010 <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">
4011 <summary>
4012 Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with
4013 the given constructor arguments for the class.
4014 </summary><remarks>
4015 The mock will try to find the best match constructor given the constructor arguments, and invoke that
4016 to initialize the instance. This applies only to classes, not interfaces.
4017 </remarks><example>
4018 <code>var mock = new Mock&lt;MyProvider&gt;(someArgument, 25);</code>
4019 </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>
4020 </member>
4021 <member name="M:Moq.Mock`1.OnGetObject">
4022 <summary>
4023 Returns the mocked object value.
4024 </summary>
4025 </member>
4026 <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">
4027 <summary>
4028 Specifies a setup on the mocked type for a call to
4029 to a void method.
4030 </summary><remarks>
4031 If more than one setup is specified for the same method or property,
4032 the latest one wins and is the one that will be executed.
4033 </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">
4034 <code>
4035 var mock = new Mock&lt;IProcessor&gt;();
4036 mock.Setup(x =&gt; x.Execute("ping"));
4037 </code>
4038 </example>
4039 </member>
4040 <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
4041 <summary>
4042 Specifies a setup on the mocked type for a call to
4043 to a value returning method.
4044 </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>
4045 If more than one setup is specified for the same method or property,
4046 the latest one wins and is the one that will be executed.
4047 </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">
4048 <code>
4049 mock.Setup(x =&gt; x.HasInventory("Talisker", 50)).Returns(true);
4050 </code>
4051 </example>
4052 </member>
4053 <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
4054 <summary>
4055 Specifies a setup on the mocked type for a call to
4056 to a property getter.
4057 </summary><remarks>
4058 If more than one setup is set for the same property getter,
4059 the latest one wins and is the one that will be executed.
4060 </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">
4061 <code>
4062 mock.SetupGet(x =&gt; x.Suspended)
4063 .Returns(true);
4064 </code>
4065 </example>
4066 </member>
4067 <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">
4068 <summary>
4069 Specifies a setup on the mocked type for a call to
4070 to a property setter.
4071 </summary><remarks>
4072 If more than one setup is set for the same property setter,
4073 the latest one wins and is the one that will be executed.
4074 <para>
4075 This overloads allows the use of a callback already
4076 typed for the property type.
4077 </para>
4078 </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">
4079 <code>
4080 mock.SetupSet(x =&gt; x.Suspended = true);
4081 </code>
4082 </example>
4083 </member>
4084 <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">
4085 <summary>
4086 Specifies a setup on the mocked type for a call to
4087 to a property setter.
4088 </summary><remarks>
4089 If more than one setup is set for the same property setter,
4090 the latest one wins and is the one that will be executed.
4091 </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">
4092 <code>
4093 mock.SetupSet(x =&gt; x.Suspended = true);
4094 </code>
4095 </example>
4096 </member>
4097 <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
4098 <summary>
4099 Specifies that the given property should have "property behavior",
4100 meaning that setting its value will cause it to be saved and
4101 later returned when the property is requested. (this is also
4102 known as "stubbing").
4103 </summary><typeparam name="TProperty">
4104 Type of the property, inferred from the property
4105 expression (does not need to be specified).
4106 </typeparam><param name="property">Property expression to stub.</param><example>
4107 If you have an interface with an int property <c>Value</c>, you might
4108 stub it using the following straightforward call:
4109 <code>
4110 var mock = new Mock&lt;IHaveValue&gt;();
4111 mock.Stub(v =&gt; v.Value);
4112 </code>
4113 After the <c>Stub</c> call has been issued, setting and
4114 retrieving the object value will behave as expected:
4115 <code>
4116 IHaveValue v = mock.Object;
4117
4118 v.Value = 5;
4119 Assert.Equal(5, v.Value);
4120 </code>
4121 </example>
4122 </member>
4123 <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">
4124 <summary>
4125 Specifies that the given property should have "property behavior",
4126 meaning that setting its value will cause it to be saved and
4127 later returned when the property is requested. This overload
4128 allows setting the initial value for the property. (this is also
4129 known as "stubbing").
4130 </summary><typeparam name="TProperty">
4131 Type of the property, inferred from the property
4132 expression (does not need to be specified).
4133 </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>
4134 If you have an interface with an int property <c>Value</c>, you might
4135 stub it using the following straightforward call:
4136 <code>
4137 var mock = new Mock&lt;IHaveValue&gt;();
4138 mock.SetupProperty(v =&gt; v.Value, 5);
4139 </code>
4140 After the <c>SetupProperty</c> call has been issued, setting and
4141 retrieving the object value will behave as expected:
4142 <code>
4143 IHaveValue v = mock.Object;
4144 // Initial value was stored
4145 Assert.Equal(5, v.Value);
4146
4147 // New value set which changes the initial value
4148 v.Value = 6;
4149 Assert.Equal(6, v.Value);
4150 </code>
4151 </example>
4152 </member>
4153 <member name="M:Moq.Mock`1.SetupAllProperties">
4154 <summary>
4155 Specifies that the all properties on the mock should have "property behavior",
4156 meaning that setting its value will cause it to be saved and
4157 later returned when the property is requested. (this is also
4158 known as "stubbing"). The default value for each property will be the
4159 one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.
4160 </summary><remarks>
4161 If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,
4162 the mocked default values will also get all properties setup recursively.
4163 </remarks>
4164 </member>
4165 <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">
4166 <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for=&quot;Mock{T}.When&quot;]/*"/>
4167 </member>
4168 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">
4169 <summary>
4170 Verifies that a specific invocation matching the given expression was performed on the mock. Use
4171 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4172 </summary><example group="verification">
4173 This example assumes that the mock has been used, and later we want to verify that a given
4174 invocation with specific parameters was performed:
4175 <code>
4176 var mock = new Mock&lt;IProcessor&gt;();
4177 // exercise mock
4178 //...
4179 // Will throw if the test code didn't call Execute with a "ping" string argument.
4180 mock.Verify(proc =&gt; proc.Execute("ping"));
4181 </code>
4182 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>
4183 </member>
4184 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">
4185 <summary>
4186 Verifies that a specific invocation matching the given expression was performed on the mock. Use
4187 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4188 </summary><exception cref="T:Moq.MockException">
4189 The invocation was not call the times specified by
4190 <paramref name="times"/>.
4191 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
4192 </member>
4193 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times})">
4194 <summary>
4195 Verifies that a specific invocation matching the given expression was performed on the mock. Use
4196 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4197 </summary><exception cref="T:Moq.MockException">
4198 The invocation was not call the times specified by
4199 <paramref name="times"/>.
4200 </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>
4201 </member>
4202 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">
4203 <summary>
4204 Verifies that a specific invocation matching the given expression was performed on the mock,
4205 specifying a failure error message. Use in conjuntion with the default
4206 <see cref="F:Moq.MockBehavior.Loose"/>.
4207 </summary><example group="verification">
4208 This example assumes that the mock has been used, and later we want to verify that a given
4209 invocation with specific parameters was performed:
4210 <code>
4211 var mock = new Mock&lt;IProcessor&gt;();
4212 // exercise mock
4213 //...
4214 // Will throw if the test code didn't call Execute with a "ping" string argument.
4215 mock.Verify(proc =&gt; proc.Execute("ping"));
4216 </code>
4217 </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>
4218 </member>
4219 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">
4220 <summary>
4221 Verifies that a specific invocation matching the given expression was performed on the mock,
4222 specifying a failure error message. Use in conjuntion with the default
4223 <see cref="F:Moq.MockBehavior.Loose"/>.
4224 </summary><exception cref="T:Moq.MockException">
4225 The invocation was not call the times specified by
4226 <paramref name="times"/>.
4227 </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>
4228 </member>
4229 <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times},System.String)">
4230 <summary>
4231 Verifies that a specific invocation matching the given expression was performed on the mock,
4232 specifying a failure error message. Use in conjuntion with the default
4233 <see cref="F:Moq.MockBehavior.Loose"/>.
4234 </summary><exception cref="T:Moq.MockException">
4235 The invocation was not call the times specified by
4236 <paramref name="times"/>.
4237 </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>
4238 </member>
4239 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
4240 <summary>
4241 Verifies that a specific invocation matching the given expression was performed on the mock. Use
4242 in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4243 </summary><example group="verification">
4244 This example assumes that the mock has been used, and later we want to verify that a given
4245 invocation with specific parameters was performed:
4246 <code>
4247 var mock = new Mock&lt;IWarehouse&gt;();
4248 // exercise mock
4249 //...
4250 // Will throw if the test code didn't call HasInventory.
4251 mock.Verify(warehouse =&gt; warehouse.HasInventory(TALISKER, 50));
4252 </code>
4253 </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>
4254 </member>
4255 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
4256 <summary>
4257 Verifies that a specific invocation matching the given
4258 expression was performed on the mock. Use in conjuntion
4259 with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4260 </summary><exception cref="T:Moq.MockException">
4261 The invocation was not call the times specified by
4262 <paramref name="times"/>.
4263 </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>
4264 </member>
4265 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">
4266 <summary>
4267 Verifies that a specific invocation matching the given
4268 expression was performed on the mock. Use in conjuntion
4269 with the default <see cref="F:Moq.MockBehavior.Loose"/>.
4270 </summary><exception cref="T:Moq.MockException">
4271 The invocation was not call the times specified by
4272 <paramref name="times"/>.
4273 </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>
4274 </member>
4275 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
4276 <summary>
4277 Verifies that a specific invocation matching the given
4278 expression was performed on the mock, specifying a failure
4279 error message.
4280 </summary><example group="verification">
4281 This example assumes that the mock has been used,
4282 and later we want to verify that a given invocation
4283 with specific parameters was performed:
4284 <code>
4285 var mock = new Mock&lt;IWarehouse&gt;();
4286 // exercise mock
4287 //...
4288 // Will throw if the test code didn't call HasInventory.
4289 mock.Verify(warehouse =&gt; warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
4290 </code>
4291 </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>
4292 </member>
4293 <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
4294 <summary>
4295 Verifies that a specific invocation matching the given
4296 expression was performed on the mock, specifying a failure
4297 error message.
4298 </summary><exception cref="T:Moq.MockException">
4299 The invocation was not call the times specified by
4300 <paramref name="times"/>.
4301 </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>
4302 </member>
4303 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">
4304 <summary>
4305 Verifies that a property was read on the mock.
4306 </summary><example group="verification">
4307 This example assumes that the mock has been used,
4308 and later we want to verify that a given property
4309 was retrieved from it:
4310 <code>
4311 var mock = new Mock&lt;IWarehouse&gt;();
4312 // exercise mock
4313 //...
4314 // Will throw if the test code didn't retrieve the IsClosed property.
4315 mock.VerifyGet(warehouse =&gt; warehouse.IsClosed);
4316 </code>
4317 </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">
4318 Type of the property to verify. Typically omitted as it can
4319 be inferred from the expression's return type.
4320 </typeparam>
4321 </member>
4322 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">
4323 <summary>
4324 Verifies that a property was read on the mock.
4325 </summary><exception cref="T:Moq.MockException">
4326 The invocation was not call the times specified by
4327 <paramref name="times"/>.
4328 </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">
4329 Type of the property to verify. Typically omitted as it can
4330 be inferred from the expression's return type.
4331 </typeparam>
4332 </member>
4333 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">
4334 <summary>
4335 Verifies that a property was read on the mock.
4336 </summary><exception cref="T:Moq.MockException">
4337 The invocation was not call the times specified by
4338 <paramref name="times"/>.
4339 </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">
4340 Type of the property to verify. Typically omitted as it can
4341 be inferred from the expression's return type.
4342 </typeparam>
4343 </member>
4344 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">
4345 <summary>
4346 Verifies that a property was read on the mock, specifying a failure
4347 error message.
4348 </summary><example group="verification">
4349 This example assumes that the mock has been used,
4350 and later we want to verify that a given property
4351 was retrieved from it:
4352 <code>
4353 var mock = new Mock&lt;IWarehouse&gt;();
4354 // exercise mock
4355 //...
4356 // Will throw if the test code didn't retrieve the IsClosed property.
4357 mock.VerifyGet(warehouse =&gt; warehouse.IsClosed);
4358 </code>
4359 </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">
4360 Type of the property to verify. Typically omitted as it can
4361 be inferred from the expression's return type.
4362 </typeparam>
4363 </member>
4364 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">
4365 <summary>
4366 Verifies that a property was read on the mock, specifying a failure
4367 error message.
4368 </summary><exception cref="T:Moq.MockException">
4369 The invocation was not call the times specified by
4370 <paramref name="times"/>.
4371 </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">
4372 Type of the property to verify. Typically omitted as it can
4373 be inferred from the expression's return type.
4374 </typeparam>
4375 </member>
4376 <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times},System.String)">
4377 <summary>
4378 Verifies that a property was read on the mock, specifying a failure
4379 error message.
4380 </summary><exception cref="T:Moq.MockException">
4381 The invocation was not call the times specified by
4382 <paramref name="times"/>.
4383 </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">
4384 Type of the property to verify. Typically omitted as it can
4385 be inferred from the expression's return type.
4386 </typeparam>
4387 </member>
4388 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">
4389 <summary>
4390 Verifies that a property was set on the mock.
4391 </summary><example group="verification">
4392 This example assumes that the mock has been used,
4393 and later we want to verify that a given property
4394 was set on it:
4395 <code>
4396 var mock = new Mock&lt;IWarehouse&gt;();
4397 // exercise mock
4398 //...
4399 // Will throw if the test code didn't set the IsClosed property.
4400 mock.VerifySet(warehouse =&gt; warehouse.IsClosed = true);
4401 </code>
4402 </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>
4403 </member>
4404 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">
4405 <summary>
4406 Verifies that a property was set on the mock.
4407 </summary><exception cref="T:Moq.MockException">
4408 The invocation was not call the times specified by
4409 <paramref name="times"/>.
4410 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
4411 </member>
4412 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times})">
4413 <summary>
4414 Verifies that a property was set on the mock.
4415 </summary><exception cref="T:Moq.MockException">
4416 The invocation was not call the times specified by
4417 <paramref name="times"/>.
4418 </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>
4419 </member>
4420 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">
4421 <summary>
4422 Verifies that a property was set on the mock, specifying
4423 a failure message.
4424 </summary><example group="verification">
4425 This example assumes that the mock has been used,
4426 and later we want to verify that a given property
4427 was set on it:
4428 <code>
4429 var mock = new Mock&lt;IWarehouse&gt;();
4430 // exercise mock
4431 //...
4432 // Will throw if the test code didn't set the IsClosed property.
4433 mock.VerifySet(warehouse =&gt; warehouse.IsClosed = true, "Warehouse should always be closed after the action");
4434 </code>
4435 </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>
4436 </member>
4437 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">
4438 <summary>
4439 Verifies that a property was set on the mock, specifying
4440 a failure message.
4441 </summary><exception cref="T:Moq.MockException">
4442 The invocation was not call the times specified by
4443 <paramref name="times"/>.
4444 </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>
4445 </member>
4446 <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times},System.String)">
4447 <summary>
4448 Verifies that a property was set on the mock, specifying
4449 a failure message.
4450 </summary><exception cref="T:Moq.MockException">
4451 The invocation was not call the times specified by
4452 <paramref name="times"/>.
4453 </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>
4454 </member>
4455 <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">
4456 <summary>
4457 Raises the event referenced in <paramref name="eventExpression"/> using
4458 the given <paramref name="args"/> argument.
4459 </summary><exception cref="T:System.ArgumentException">
4460 The <paramref name="args"/> argument is
4461 invalid for the target event invocation, or the <paramref name="eventExpression"/> is
4462 not an event attach or detach expression.
4463 </exception><example>
4464 The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:
4465 <code>
4466 var mock = new Mock&lt;IViewModel&gt;();
4467
4468 mock.Raise(x =&gt; x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
4469 </code>
4470 </example><example>
4471 This example shows how to invoke an event with a custom event arguments
4472 class in a view that will cause its corresponding presenter to
4473 react by changing its state:
4474 <code>
4475 var mockView = new Mock&lt;IOrdersView&gt;();
4476 var presenter = new OrdersPresenter(mockView.Object);
4477
4478 // Check that the presenter has no selection by default
4479 Assert.Null(presenter.SelectedOrder);
4480
4481 // Raise the event with a specific arguments data
4482 mockView.Raise(v =&gt; v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
4483
4484 // Now the presenter reacted to the event, and we have a selected order
4485 Assert.NotNull(presenter.SelectedOrder);
4486 Assert.Equal("moq", presenter.SelectedOrder.ProductName);
4487 </code>
4488 </example>
4489 </member>
4490 <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">
4491 <summary>
4492 Raises the event referenced in <paramref name="eventExpression"/> using
4493 the given <paramref name="args"/> argument for a non-EventHandler typed event.
4494 </summary><exception cref="T:System.ArgumentException">
4495 The <paramref name="args"/> arguments are
4496 invalid for the target event invocation, or the <paramref name="eventExpression"/> is
4497 not an event attach or detach expression.
4498 </exception><example>
4499 The following example shows how to raise a custom event that does not adhere to
4500 the standard <c>EventHandler</c>:
4501 <code>
4502 var mock = new Mock&lt;IViewModel&gt;();
4503
4504 mock.Raise(x =&gt; x.MyEvent -= null, "Name", bool, 25);
4505 </code>
4506 </example>
4507 </member>
4508 <member name="P:Moq.Mock`1.Object">
4509 <summary>
4510 Exposes the mocked object instance.
4511 </summary>
4512 </member>
4513 <member name="P:Moq.Mock`1.DelegateInterfaceMethod">
4514 <inheritdoc />
4515 </member>
4516 <member name="T:Moq.MockLegacyExtensions">
4517 <summary>
4518 Provides legacy API members as extensions so that
4519 existing code continues to compile, but new code
4520 doesn't see then.
4521 </summary>
4522 </member>
4523 <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
4524 <summary>
4525 Obsolete.
4526 </summary>
4527 </member>
4528 <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
4529 <summary>
4530 Obsolete.
4531 </summary>
4532 </member>
4533 <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">
4534 <summary>
4535 Obsolete.
4536 </summary>
4537 </member>
4538 <member name="T:Moq.ObsoleteMockExtensions">
4539 <summary>
4540 Provides additional methods on mocks.
4541 </summary>
4542 <devdoc>
4543 Provided as extension methods as they confuse the compiler
4544 with the overloads taking Action.
4545 </devdoc>
4546 </member>
4547 <member name="M:Moq.ObsoleteMockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
4548 <summary>
4549 Specifies a setup on the mocked type for a call to
4550 to a property setter, regardless of its value.
4551 </summary>
4552 <remarks>
4553 If more than one setup is set for the same property setter,
4554 the latest one wins and is the one that will be executed.
4555 </remarks>
4556 <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>
4557 <typeparam name="T">Type of the mock.</typeparam>
4558 <param name="mock">The target mock for the setup.</param>
4559 <param name="expression">Lambda expression that specifies the property setter.</param>
4560 <example group="setups">
4561 <code>
4562 mock.SetupSet(x =&gt; x.Suspended);
4563 </code>
4564 </example>
4565 <devdoc>
4566 This method is not legacy, but must be on an extension method to avoid
4567 confusing the compiler with the new Action syntax.
4568 </devdoc>
4569 </member>
4570 <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
4571 <summary>
4572 Verifies that a property has been set on the mock, regarless of its value.
4573 </summary>
4574 <example group="verification">
4575 This example assumes that the mock has been used,
4576 and later we want to verify that a given invocation
4577 with specific parameters was performed:
4578 <code>
4579 var mock = new Mock&lt;IWarehouse&gt;();
4580 // exercise mock
4581 //...
4582 // Will throw if the test code didn't set the IsClosed property.
4583 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
4584 </code>
4585 </example>
4586 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
4587 <param name="expression">Expression to verify.</param>
4588 <param name="mock">The mock instance.</param>
4589 <typeparam name="T">Mocked type.</typeparam>
4590 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
4591 be inferred from the expression's return type.</typeparam>
4592 </member>
4593 <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
4594 <summary>
4595 Verifies that a property has been set on the mock, specifying a failure
4596 error message.
4597 </summary>
4598 <example group="verification">
4599 This example assumes that the mock has been used,
4600 and later we want to verify that a given invocation
4601 with specific parameters was performed:
4602 <code>
4603 var mock = new Mock&lt;IWarehouse&gt;();
4604 // exercise mock
4605 //...
4606 // Will throw if the test code didn't set the IsClosed property.
4607 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
4608 </code>
4609 </example>
4610 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
4611 <param name="expression">Expression to verify.</param>
4612 <param name="failMessage">Message to show if verification fails.</param>
4613 <param name="mock">The mock instance.</param>
4614 <typeparam name="T">Mocked type.</typeparam>
4615 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
4616 be inferred from the expression's return type.</typeparam>
4617 </member>
4618 <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">
4619 <summary>
4620 Verifies that a property has been set on the mock, regardless
4621 of the value but only the specified number of times.
4622 </summary>
4623 <example group="verification">
4624 This example assumes that the mock has been used,
4625 and later we want to verify that a given invocation
4626 with specific parameters was performed:
4627 <code>
4628 var mock = new Mock&lt;IWarehouse&gt;();
4629 // exercise mock
4630 //...
4631 // Will throw if the test code didn't set the IsClosed property.
4632 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
4633 </code>
4634 </example>
4635 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
4636 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
4637 <paramref name="times"/>.</exception>
4638 <param name="mock">The mock instance.</param>
4639 <typeparam name="T">Mocked type.</typeparam>
4640 <param name="times">The number of times a method is allowed to be called.</param>
4641 <param name="expression">Expression to verify.</param>
4642 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
4643 be inferred from the expression's return type.</typeparam>
4644 </member>
4645 <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">
4646 <summary>
4647 Verifies that a property has been set on the mock, regardless
4648 of the value but only the specified number of times, and specifying a failure
4649 error message.
4650 </summary>
4651 <example group="verification">
4652 This example assumes that the mock has been used,
4653 and later we want to verify that a given invocation
4654 with specific parameters was performed:
4655 <code>
4656 var mock = new Mock&lt;IWarehouse&gt;();
4657 // exercise mock
4658 //...
4659 // Will throw if the test code didn't set the IsClosed property.
4660 mock.VerifySet(warehouse =&gt; warehouse.IsClosed);
4661 </code>
4662 </example>
4663 <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>
4664 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
4665 <paramref name="times"/>.</exception>
4666 <param name="mock">The mock instance.</param>
4667 <typeparam name="T">Mocked type.</typeparam>
4668 <param name="times">The number of times a method is allowed to be called.</param>
4669 <param name="failMessage">Message to show if verification fails.</param>
4670 <param name="expression">Expression to verify.</param>
4671 <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can
4672 be inferred from the expression's return type.</typeparam>
4673 </member>
4674 <member name="T:Moq.SequenceExtensions">
4675 <summary>
4676 Helper for sequencing return values in the same method.
4677 </summary>
4678 </member>
4679 <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
4680 <summary>
4681 Return a sequence of values, once per call.
4682 </summary>
4683 </member>
4684 <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">
4685 <summary>
4686 Casts the expression to a lambda expression, removing
4687 a cast if there's any.
4688 </summary>
4689 </member>
4690 <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">
4691 <summary>
4692 Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.
4693 </summary>
4694 <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>
4695 </member>
4696 <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">
4697 <summary>
4698 Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.
4699 </summary>
4700 </member>
4701 <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">
4702 <summary>
4703 Checks whether the body of the lambda expression is a property access.
4704 </summary>
4705 </member>
4706 <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">
4707 <summary>
4708 Checks whether the expression is a property access.
4709 </summary>
4710 </member>
4711 <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">
4712 <summary>
4713 Checks whether the body of the lambda expression is a property indexer, which is true
4714 when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
4715 <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
4716 equal to <see langword="true"/>.
4717 </summary>
4718 </member>
4719 <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">
4720 <summary>
4721 Checks whether the expression is a property indexer, which is true
4722 when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose
4723 <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/>
4724 equal to <see langword="true"/>.
4725 </summary>
4726 </member>
4727 <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">
4728 <summary>
4729 Creates an expression that casts the given expression to the <typeparamref name="T"/>
4730 type.
4731 </summary>
4732 </member>
4733 <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">
4734 <devdoc>
4735 TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
4736 is fixed.
4737 </devdoc>
4738 </member>
4739 <member name="M:Moq.ExpressionExtensions.GetCallInfo(System.Linq.Expressions.LambdaExpression,Moq.Mock)">
4740 <summary>
4741 Extracts, into a common form, information from a <see cref="T:System.Linq.Expressions.LambdaExpression"/>
4742 around either a <see cref="T:System.Linq.Expressions.MethodCallExpression"/> (for a normal method call)
4743 or a <see cref="T:System.Linq.Expressions.InvocationExpression"/> (for a delegate invocation).
4744 </summary>
4745 </member>
4746 <member name="M:Moq.Extensions.IsDelegate(System.Type)">
4747 <summary>
4748 Tests if a type is a delegate type (subclasses <see cref="T:System.Delegate"/>).
4749 </summary>
4750 </member>
4751 <member name="T:Moq.Evaluator">
4752 <summary>
4753 Provides partial evaluation of subtrees, whenever they can be evaluated locally.
4754 </summary>
4755 <author>Matt Warren: http://blogs.msdn.com/mattwar</author>
4756 <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>
4757 </member>
4758 <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">
4759 <summary>
4760 Performs evaluation and replacement of independent sub-trees
4761 </summary>
4762 <param name="expression">The root of the expression tree.</param>
4763 <param name="fnCanBeEvaluated">A function that decides whether a given expression
4764 node can be part of the local function.</param>
4765 <returns>A new tree with sub-trees evaluated and replaced.</returns>
4766 </member>
4767 <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">
4768 <summary>
4769 Performs evaluation and replacement of independent sub-trees
4770 </summary>
4771 <param name="expression">The root of the expression tree.</param>
4772 <returns>A new tree with sub-trees evaluated and replaced.</returns>
4773 </member>
4774 <member name="T:Moq.Evaluator.SubtreeEvaluator">
4775 <summary>
4776 Evaluates and replaces sub-trees when first candidate is reached (top-down)
4777 </summary>
4778 </member>
4779 <member name="T:Moq.Evaluator.Nominator">
4780 <summary>
4781 Performs bottom-up analysis to determine which nodes can possibly
4782 be part of an evaluated sub-tree.
4783 </summary>
4784 </member>
4785 <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">
4786 <summary>
4787 Ensures the given <paramref name="value"/> is not null.
4788 Throws <see cref="T:System.ArgumentNullException"/> otherwise.
4789 </summary>
4790 </member>
4791 <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">
4792 <summary>
4793 Ensures the given string <paramref name="value"/> is not null or empty.
4794 Throws <see cref="T:System.ArgumentNullException"/> in the first case, or
4795 <see cref="T:System.ArgumentException"/> in the latter.
4796 </summary>
4797 </member>
4798 <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
4799 <summary>
4800 Checks an argument to ensure it is in the specified range including the edges.
4801 </summary>
4802 <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
4803 </typeparam>
4804 <param name="reference">The expression containing the name of the argument.</param>
4805 <param name="value">The argument value to check.</param>
4806 <param name="from">The minimun allowed value for the argument.</param>
4807 <param name="to">The maximun allowed value for the argument.</param>
4808 </member>
4809 <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">
4810 <summary>
4811 Checks an argument to ensure it is in the specified range excluding the edges.
4812 </summary>
4813 <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.
4814 </typeparam>
4815 <param name="reference">The expression containing the name of the argument.</param>
4816 <param name="value">The argument value to check.</param>
4817 <param name="from">The minimun allowed value for the argument.</param>
4818 <param name="to">The maximun allowed value for the argument.</param>
4819 </member>
4820 <member name="T:Moq.IMocked`1">
4821 <summary>
4822 Implemented by all generated mock object instances.
4823 </summary>
4824 </member>
4825 <member name="T:Moq.IMocked">
4826 <summary>
4827 Implemented by all generated mock object instances.
4828 </summary>
4829 </member>
4830 <member name="P:Moq.IMocked.Mock">
4831 <summary>
4832 Reference the Mock that contains this as the <c>mock.Object</c> value.
4833 </summary>
4834 </member>
4835 <member name="P:Moq.IMocked`1.Mock">
4836 <summary>
4837 Reference the Mock that contains this as the <c>mock.Object</c> value.
4838 </summary>
4839 </member>
4840 <member name="T:Moq.Interceptor">
4841 <summary>
4842 Implements the actual interception and method invocation for
4843 all mocks.
4844 </summary>
4845 </member>
4846 <member name="T:Moq.Language.Flow.ISetupSetter`2">
4847 <summary>
4848 Implements the fluent API.
4849 </summary>
4850 </member>
4851 <member name="T:Moq.Language.ICallbackSetter`1">
4852 <summary>
4853 Defines the <c>Callback</c> verb for property setter setups.
4854 </summary>
4855 <typeparam name="TProperty">Type of the property.</typeparam>
4856 </member>
4857 <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">
4858 <summary>
4859 Specifies a callback to invoke when the property is set that receives the
4860 property value being set.
4861 </summary>
4862 <param name="action">Callback method to invoke.</param>
4863 <example>
4864 Invokes the given callback with the property value being set.
4865 <code>
4866 mock.SetupSet(x => x.Suspended)
4867 .Callback((bool state) => Console.WriteLine(state));
4868 </code>
4869 </example>
4870 </member>
4871 <member name="T:Moq.It">
4872 <summary>
4873 Allows the specification of a matching condition for an
4874 argument in a method invocation, rather than a specific
4875 argument value. "It" refers to the argument being matched.
4876 </summary><remarks>
4877 This class allows the setup to match a method invocation
4878 with an arbitrary value, with a value in a specified range, or
4879 even one that matches a given predicate.
4880 </remarks>
4881 </member>
4882 <member name="M:Moq.It.IsAny``1">
4883 <summary>
4884 Matches any value of the given <typeparamref name="TValue"/> type.
4885 </summary><remarks>
4886 Typically used when the actual argument value for a method
4887 call is not relevant.
4888 </remarks><example>
4889 <code>
4890 // Throws an exception for a call to Remove with any string value.
4891 mock.Setup(x =&gt; x.Remove(It.IsAny&lt;string&gt;())).Throws(new InvalidOperationException());
4892 </code>
4893 </example><typeparam name="TValue">Type of the value.</typeparam>
4894 </member>
4895 <member name="M:Moq.It.IsNotNull``1">
4896 <summary>
4897 Matches any value of the given <typeparamref name="TValue"/> type, except null.
4898 </summary><typeparam name="TValue">Type of the value.</typeparam>
4899 </member>
4900 <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
4901 <summary>
4902 Matches any value that satisfies the given predicate.
4903 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>
4904 Allows the specification of a predicate to perform matching
4905 of method call arguments.
4906 </remarks><example>
4907 This example shows how to return the value <c>1</c> whenever the argument to the
4908 <c>Do</c> method is an even number.
4909 <code>
4910 mock.Setup(x =&gt; x.Do(It.Is&lt;int&gt;(i =&gt; i % 2 == 0)))
4911 .Returns(1);
4912 </code>
4913 This example shows how to throw an exception if the argument to the
4914 method is a negative number:
4915 <code>
4916 mock.Setup(x =&gt; x.GetUser(It.Is&lt;int&gt;(i =&gt; i &lt; 0)))
4917 .Throws(new ArgumentException());
4918 </code>
4919 </example>
4920 </member>
4921 <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">
4922 <summary>
4923 Matches any value that is in the range specified.
4924 </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">
4925 The kind of range. See <see cref="T:Moq.Range"/>.
4926 </param><example>
4927 The following example shows how to expect a method call
4928 with an integer argument within the 0..100 range.
4929 <code>
4930 mock.Setup(x =&gt; x.HasInventory(
4931 It.IsAny&lt;string&gt;(),
4932 It.IsInRange(0, 100, Range.Inclusive)))
4933 .Returns(false);
4934 </code>
4935 </example>
4936 </member>
4937 <member name="M:Moq.It.IsIn``1(System.Collections.Generic.IEnumerable{``0})">
4938 <summary>
4939 Matches any value that is present in the sequence specified.
4940 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>
4941 The following example shows how to expect a method call
4942 with an integer argument with value from a list.
4943 <code>
4944 var values = new List&lt;int&gt; { 1, 2, 3 };
4945
4946 mock.Setup(x =&gt; x.HasInventory(
4947 It.IsAny&lt;string&gt;(),
4948 It.IsIn(values)))
4949 .Returns(false);
4950 </code>
4951 </example>
4952 </member>
4953 <member name="M:Moq.It.IsIn``1(``0[])">
4954 <summary>
4955 Matches any value that is present in the sequence specified.
4956 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>
4957 The following example shows how to expect a method call
4958 with an integer argument with a value of 1, 2, or 3.
4959 <code>
4960 mock.Setup(x =&gt; x.HasInventory(
4961 It.IsAny&lt;string&gt;(),
4962 It.IsIn(1, 2, 3)))
4963 .Returns(false);
4964 </code>
4965 </example>
4966 </member>
4967 <member name="M:Moq.It.IsNotIn``1(System.Collections.Generic.IEnumerable{``0})">
4968 <summary>
4969 Matches any value that is not found in the sequence specified.
4970 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>
4971 The following example shows how to expect a method call
4972 with an integer argument with value not found from a list.
4973 <code>
4974 var values = new List&lt;int&gt; { 1, 2, 3 };
4975
4976 mock.Setup(x =&gt; x.HasInventory(
4977 It.IsAny&lt;string&gt;(),
4978 It.IsNotIn(values)))
4979 .Returns(false);
4980 </code>
4981 </example>
4982 </member>
4983 <member name="M:Moq.It.IsNotIn``1(``0[])">
4984 <summary>
4985 Matches any value that is not found in the sequence specified.
4986 </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>
4987 The following example shows how to expect a method call
4988 with an integer argument of any value except 1, 2, or 3.
4989 <code>
4990 mock.Setup(x =&gt; x.HasInventory(
4991 It.IsAny&lt;string&gt;(),
4992 It.IsNotIn(1, 2, 3)))
4993 .Returns(false);
4994 </code>
4995 </example>
4996 </member>
4997 <member name="M:Moq.It.IsRegex(System.String)">
4998 <summary>
4999 Matches a string argument if it matches the given regular expression pattern.
5000 </summary><param name="regex">The pattern to use to match the string argument value.</param><example>
5001 The following example shows how to expect a call to a method where the
5002 string argument matches the given regular expression:
5003 <code>
5004 mock.Setup(x =&gt; x.Check(It.IsRegex("[a-z]+"))).Returns(1);
5005 </code>
5006 </example>
5007 </member>
5008 <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
5009 <summary>
5010 Matches a string argument if it matches the given regular expression pattern.
5011 </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>
5012 The following example shows how to expect a call to a method where the
5013 string argument matches the given regular expression, in a case insensitive way:
5014 <code>
5015 mock.Setup(x =&gt; x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
5016 </code>
5017 </example>
5018 </member>
5019 <member name="T:Moq.Matchers.MatcherAttributeMatcher">
5020 <summary>
5021 Matcher to treat static functions as matchers.
5022
5023 mock.Setup(x => x.StringMethod(A.MagicString()));
5024
5025 public static class A
5026 {
5027 [Matcher]
5028 public static string MagicString() { return null; }
5029 public static bool MagicString(string arg)
5030 {
5031 return arg == "magic";
5032 }
5033 }
5034
5035 Will succeed if: mock.Object.StringMethod("magic");
5036 and fail with any other call.
5037 </summary>
5038 </member>
5039 <member name="T:Moq.MockBehavior">
5040 <summary>
5041 Options to customize the behavior of the mock.
5042 </summary>
5043 </member>
5044 <member name="F:Moq.MockBehavior.Strict">
5045 <summary>
5046 Causes the mock to always throw
5047 an exception for invocations that don't have a
5048 corresponding setup.
5049 </summary>
5050 </member>
5051 <member name="F:Moq.MockBehavior.Loose">
5052 <summary>
5053 Will never throw exceptions, returning default
5054 values when necessary (null for reference types,
5055 zero for value types or empty enumerables and arrays).
5056 </summary>
5057 </member>
5058 <member name="F:Moq.MockBehavior.Default">
5059 <summary>
5060 Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.
5061 </summary>
5062 </member>
5063 <member name="T:Moq.MockException">
5064 <summary>
5065 Exception thrown by mocks when setups are not matched,
5066 the mock is not properly setup, etc.
5067 </summary>
5068 <remarks>
5069 A distinct exception type is provided so that exceptions
5070 thrown by the mock can be differentiated in tests that
5071 expect other exceptions to be thrown (i.e. ArgumentException).
5072 <para>
5073 Richer exception hierarchy/types are not provided as
5074 tests typically should <b>not</b> catch or expect exceptions
5075 from the mocks. These are typically the result of changes
5076 in the tested class or its collaborators implementation, and
5077 result in fixes in the mock setup so that they dissapear and
5078 allow the test to pass.
5079 </para>
5080 </remarks>
5081 </member>
5082 <member name="M:Moq.MockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
5083 <summary>
5084 Supports the serialization infrastructure.
5085 </summary>
5086 <param name="info">Serialization information.</param>
5087 <param name="context">Streaming context.</param>
5088 </member>
5089 <member name="M:Moq.MockException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
5090 <summary>
5091 Supports the serialization infrastructure.
5092 </summary>
5093 <param name="info">Serialization information.</param>
5094 <param name="context">Streaming context.</param>
5095 </member>
5096 <member name="P:Moq.MockException.IsVerificationError">
5097 <summary>
5098 Indicates whether this exception is a verification fault raised by Verify()
5099 </summary>
5100 </member>
5101 <member name="T:Moq.MockException.ExceptionReason">
5102 <summary>
5103 Made internal as it's of no use for
5104 consumers, but it's important for
5105 our own tests.
5106 </summary>
5107 </member>
5108 <member name="T:Moq.MockVerificationException">
5109 <devdoc>
5110 Used by the mock factory to accumulate verification
5111 failures.
5112 </devdoc>
5113 </member>
5114 <member name="M:Moq.MockVerificationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
5115 <summary>
5116 Supports the serialization infrastructure.
5117 </summary>
5118 </member>
5119 <member name="T:Moq.Properties.Resources">
5120 <summary>
5121 A strongly-typed resource class, for looking up localized strings, etc.
5122 </summary>
5123 </member>
5124 <member name="P:Moq.Properties.Resources.ResourceManager">
5125 <summary>
5126 Returns the cached ResourceManager instance used by this class.
5127 </summary>
5128 </member>
5129 <member name="P:Moq.Properties.Resources.Culture">
5130 <summary>
5131 Overrides the current thread's CurrentUICulture property for all
5132 resource lookups using this strongly typed resource class.
5133 </summary>
5134 </member>
5135 <member name="P:Moq.Properties.Resources.AlreadyInitialized">
5136 <summary>
5137 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..
5138 </summary>
5139 </member>
5140 <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">
5141 <summary>
5142 Looks up a localized string similar to Value cannot be an empty string..
5143 </summary>
5144 </member>
5145 <member name="P:Moq.Properties.Resources.AsMustBeInterface">
5146 <summary>
5147 Looks up a localized string similar to Can only add interfaces to the mock..
5148 </summary>
5149 </member>
5150 <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">
5151 <summary>
5152 Looks up a localized string similar to Can&apos;t set return value for void method {0}..
5153 </summary>
5154 </member>
5155 <member name="P:Moq.Properties.Resources.ConstructorArgsForDelegate">
5156 <summary>
5157 Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..
5158 </summary>
5159 </member>
5160 <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">
5161 <summary>
5162 Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
5163 </summary>
5164 </member>
5165 <member name="P:Moq.Properties.Resources.ConstructorNotFound">
5166 <summary>
5167 Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
5168 </summary>
5169 </member>
5170 <member name="P:Moq.Properties.Resources.EventNofFound">
5171 <summary>
5172 Looks up a localized string similar to Could not locate event for attach or detach method {0}..
5173 </summary>
5174 </member>
5175 <member name="P:Moq.Properties.Resources.FieldsNotSupported">
5176 <summary>
5177 Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
5178 </summary>
5179 </member>
5180 <member name="P:Moq.Properties.Resources.InvalidMockClass">
5181 <summary>
5182 Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
5183 </summary>
5184 </member>
5185 <member name="P:Moq.Properties.Resources.InvalidMockGetType">
5186 <summary>
5187 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.
5188 Please cast the argument to one of the supported types: {1}.
5189 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..
5190 </summary>
5191 </member>
5192 <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">
5193 <summary>
5194 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}.
5195 </summary>
5196 </member>
5197 <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">
5198 <summary>
5199 Looks up a localized string similar to LINQ method &apos;{0}&apos; not supported..
5200 </summary>
5201 </member>
5202 <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">
5203 <summary>
5204 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}.
5205 </summary>
5206 </member>
5207 <member name="P:Moq.Properties.Resources.MemberMissing">
5208 <summary>
5209 Looks up a localized string similar to Member {0}.{1} does not exist..
5210 </summary>
5211 </member>
5212 <member name="P:Moq.Properties.Resources.MethodIsPublic">
5213 <summary>
5214 Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
5215 mock.Setup(x =&gt; x.{1}());
5216 .
5217 </summary>
5218 </member>
5219 <member name="P:Moq.Properties.Resources.MockExceptionMessage">
5220 <summary>
5221 Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
5222 {2}.
5223 </summary>
5224 </member>
5225 <member name="P:Moq.Properties.Resources.MoreThanNCalls">
5226 <summary>
5227 Looks up a localized string similar to Expected only {0} calls to {1}..
5228 </summary>
5229 </member>
5230 <member name="P:Moq.Properties.Resources.MoreThanOneCall">
5231 <summary>
5232 Looks up a localized string similar to Expected only one call to {0}..
5233 </summary>
5234 </member>
5235 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">
5236 <summary>
5237 Looks up a localized string similar to {0}
5238 Expected invocation on the mock at least {2} times, but was {4} times: {1}.
5239 </summary>
5240 </member>
5241 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">
5242 <summary>
5243 Looks up a localized string similar to {0}
5244 Expected invocation on the mock at least once, but was never performed: {1}.
5245 </summary>
5246 </member>
5247 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">
5248 <summary>
5249 Looks up a localized string similar to {0}
5250 Expected invocation on the mock at most {3} times, but was {4} times: {1}.
5251 </summary>
5252 </member>
5253 <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">
5254 <summary>
5255 Looks up a localized string similar to {0}
5256 Expected invocation on the mock at most once, but was {4} times: {1}.
5257 </summary>
5258 </member>
5259 <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">
5260 <summary>
5261 Looks up a localized string similar to {0}
5262 Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
5263 </summary>
5264 </member>
5265 <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">
5266 <summary>
5267 Looks up a localized string similar to {0}
5268 Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
5269 </summary>
5270 </member>
5271 <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">
5272 <summary>
5273 Looks up a localized string similar to {0}
5274 Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
5275 </summary>
5276 </member>
5277 <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">
5278 <summary>
5279 Looks up a localized string similar to {0}
5280 Expected invocation on the mock should never have been performed, but was {4} times: {1}.
5281 </summary>
5282 </member>
5283 <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">
5284 <summary>
5285 Looks up a localized string similar to {0}
5286 Expected invocation on the mock once, but was {4} times: {1}.
5287 </summary>
5288 </member>
5289 <member name="P:Moq.Properties.Resources.NoSetup">
5290 <summary>
5291 Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
5292 </summary>
5293 </member>
5294 <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">
5295 <summary>
5296 Looks up a localized string similar to Object instance was not created by Moq..
5297 </summary>
5298 </member>
5299 <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">
5300 <summary>
5301 Looks up a localized string similar to Out expression must evaluate to a constant value..
5302 </summary>
5303 </member>
5304 <member name="P:Moq.Properties.Resources.PropertyGetNotFound">
5305 <summary>
5306 Looks up a localized string similar to Property {0}.{1} does not have a getter..
5307 </summary>
5308 </member>
5309 <member name="P:Moq.Properties.Resources.PropertyMissing">
5310 <summary>
5311 Looks up a localized string similar to Property {0}.{1} does not exist..
5312 </summary>
5313 </member>
5314 <member name="P:Moq.Properties.Resources.PropertyNotReadable">
5315 <summary>
5316 Looks up a localized string similar to Property {0}.{1} is write-only..
5317 </summary>
5318 </member>
5319 <member name="P:Moq.Properties.Resources.PropertyNotWritable">
5320 <summary>
5321 Looks up a localized string similar to Property {0}.{1} is read-only..
5322 </summary>
5323 </member>
5324 <member name="P:Moq.Properties.Resources.PropertySetNotFound">
5325 <summary>
5326 Looks up a localized string similar to Property {0}.{1} does not have a setter..
5327 </summary>
5328 </member>
5329 <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">
5330 <summary>
5331 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..
5332 </summary>
5333 </member>
5334 <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">
5335 <summary>
5336 Looks up a localized string similar to Ref expression must evaluate to a constant value..
5337 </summary>
5338 </member>
5339 <member name="P:Moq.Properties.Resources.ReturnValueRequired">
5340 <summary>
5341 Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
5342 </summary>
5343 </member>
5344 <member name="P:Moq.Properties.Resources.SetupLambda">
5345 <summary>
5346 Looks up a localized string similar to A lambda expression is expected as the argument to It.Is&lt;T&gt;..
5347 </summary>
5348 </member>
5349 <member name="P:Moq.Properties.Resources.SetupNever">
5350 <summary>
5351 Looks up a localized string similar to Invocation {0} should not have been made..
5352 </summary>
5353 </member>
5354 <member name="P:Moq.Properties.Resources.SetupNotMethod">
5355 <summary>
5356 Looks up a localized string similar to Expression is not a method invocation: {0}.
5357 </summary>
5358 </member>
5359 <member name="P:Moq.Properties.Resources.SetupNotProperty">
5360 <summary>
5361 Looks up a localized string similar to Expression is not a property access: {0}.
5362 </summary>
5363 </member>
5364 <member name="P:Moq.Properties.Resources.SetupNotSetter">
5365 <summary>
5366 Looks up a localized string similar to Expression is not a property setter invocation..
5367 </summary>
5368 </member>
5369 <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">
5370 <summary>
5371 Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.
5372 </summary>
5373 </member>
5374 <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">
5375 <summary>
5376 Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.
5377 </summary>
5378 </member>
5379 <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">
5380 <summary>
5381 Looks up a localized string similar to Type {0} does not implement required interface {1}.
5382 </summary>
5383 </member>
5384 <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">
5385 <summary>
5386 Looks up a localized string similar to Type {0} does not from required type {1}.
5387 </summary>
5388 </member>
5389 <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">
5390 <summary>
5391 Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
5392 mock.Setup(x =&gt; x.{1}).Returns(value);
5393 mock.SetupGet(x =&gt; x.{1}).Returns(value); //equivalent to previous one
5394 mock.SetupSet(x =&gt; x.{1}).Callback(callbackDelegate);
5395 .
5396 </summary>
5397 </member>
5398 <member name="P:Moq.Properties.Resources.UnsupportedExpression">
5399 <summary>
5400 Looks up a localized string similar to Unsupported expression: {0}.
5401 </summary>
5402 </member>
5403 <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">
5404 <summary>
5405 Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
5406 </summary>
5407 </member>
5408 <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">
5409 <summary>
5410 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}..
5411 </summary>
5412 </member>
5413 <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">
5414 <summary>
5415 Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
5416 </summary>
5417 </member>
5418 <member name="P:Moq.Properties.Resources.UnsupportedMember">
5419 <summary>
5420 Looks up a localized string similar to Member {0} is not supported for protected mocking..
5421 </summary>
5422 </member>
5423 <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">
5424 <summary>
5425 Looks up a localized string similar to Setter expression can only use static custom matchers..
5426 </summary>
5427 </member>
5428 <member name="P:Moq.Properties.Resources.VerficationFailed">
5429 <summary>
5430 Looks up a localized string similar to The following setups were not matched:
5431 {0}.
5432 </summary>
5433 </member>
5434 <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">
5435 <summary>
5436 Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.
5437 </summary>
5438 </member>
5439 <member name="T:Moq.Protected.IProtectedMock`1">
5440 <summary>
5441 Allows setups to be specified for protected members by using their
5442 name as a string, rather than strong-typing them which is not possible
5443 due to their visibility.
5444 </summary>
5445 </member>
5446 <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">
5447 <summary>
5448 Specifies a setup for a void method invocation with the given
5449 <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.
5450 </summary>
5451 <param name="voidMethodName">The name of the void method to be invoked.</param>
5452 <param name="args">The optional arguments for the invocation. If argument matchers are used,
5453 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
5454 </member>
5455 <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">
5456 <summary>
5457 Specifies a setup for an invocation on a property or a non void method with the given
5458 <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.
5459 </summary>
5460 <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>
5461 <param name="args">The optional arguments for the invocation. If argument matchers are used,
5462 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
5463 <typeparam name="TResult">The return type of the method or property.</typeparam>
5464 </member>
5465 <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">
5466 <summary>
5467 Specifies a setup for an invocation on a property getter with the given
5468 <paramref name="propertyName"/>.
5469 </summary>
5470 <param name="propertyName">The name of the property.</param>
5471 <typeparam name="TProperty">The type of the property.</typeparam>
5472 </member>
5473 <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">
5474 <summary>
5475 Specifies a setup for an invocation on a property setter with the given
5476 <paramref name="propertyName"/>.
5477 </summary>
5478 <param name="propertyName">The name of the property.</param>
5479 <param name="value">The property value. If argument matchers are used,
5480 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
5481 <typeparam name="TProperty">The type of the property.</typeparam>
5482 </member>
5483 <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">
5484 <summary>
5485 Specifies a verify for a void method with the given <paramref name="methodName"/>,
5486 optionally specifying arguments for the method call. Use in conjuntion with the default
5487 <see cref="F:Moq.MockBehavior.Loose"/>.
5488 </summary>
5489 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
5490 <paramref name="times"/>.</exception>
5491 <param name="methodName">The name of the void method to be verified.</param>
5492 <param name="times">The number of times a method is allowed to be called.</param>
5493 <param name="args">The optional arguments for the invocation. If argument matchers are used,
5494 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
5495 </member>
5496 <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">
5497 <summary>
5498 Specifies a verify for an invocation on a property or a non void method with the given
5499 <paramref name="methodName"/>, optionally specifying arguments for the method call.
5500 </summary>
5501 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
5502 <paramref name="times"/>.</exception>
5503 <param name="methodName">The name of the method or property to be invoked.</param>
5504 <param name="args">The optional arguments for the invocation. If argument matchers are used,
5505 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>
5506 <param name="times">The number of times a method is allowed to be called.</param>
5507 <typeparam name="TResult">The type of return value from the expression.</typeparam>
5508 </member>
5509 <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">
5510 <summary>
5511 Specifies a verify for an invocation on a property getter with the given
5512 <paramref name="propertyName"/>.
5513 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
5514 <paramref name="times"/>.</exception>
5515 </summary>
5516 <param name="propertyName">The name of the property.</param>
5517 <param name="times">The number of times a method is allowed to be called.</param>
5518 <typeparam name="TProperty">The type of the property.</typeparam>
5519 </member>
5520 <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">
5521 <summary>
5522 Specifies a setup for an invocation on a property setter with the given
5523 <paramref name="propertyName"/>.
5524 </summary>
5525 <exception cref="T:Moq.MockException">The invocation was not call the times specified by
5526 <paramref name="times"/>.</exception>
5527 <param name="propertyName">The name of the property.</param>
5528 <param name="times">The number of times a method is allowed to be called.</param>
5529 <param name="value">The property value.</param>
5530 <typeparam name="TProperty">The type of the property. If argument matchers are used,
5531 remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>
5532 </member>
5533 <member name="T:Moq.Protected.ItExpr">
5534 <summary>
5535 Allows the specification of a matching condition for an
5536 argument in a protected member setup, rather than a specific
5537 argument value. "ItExpr" refers to the argument being matched.
5538 </summary>
5539 <remarks>
5540 <para>Use this variant of argument matching instead of
5541 <see cref="T:Moq.It"/> for protected setups.</para>
5542 This class allows the setup to match a method invocation
5543 with an arbitrary value, with a value in a specified range, or
5544 even one that matches a given predicate, or null.
5545 </remarks>
5546 </member>
5547 <member name="M:Moq.Protected.ItExpr.IsNull``1">
5548 <summary>
5549 Matches a null value of the given <typeparamref name="TValue"/> type.
5550 </summary>
5551 <remarks>
5552 Required for protected mocks as the null value cannot be used
5553 directly as it prevents proper method overload selection.
5554 </remarks>
5555 <example>
5556 <code>
5557 // Throws an exception for a call to Remove with a null string value.
5558 mock.Protected()
5559 .Setup("Remove", ItExpr.IsNull&lt;string&gt;())
5560 .Throws(new InvalidOperationException());
5561 </code>
5562 </example>
5563 <typeparam name="TValue">Type of the value.</typeparam>
5564 </member>
5565 <member name="M:Moq.Protected.ItExpr.IsAny``1">
5566 <summary>
5567 Matches any value of the given <typeparamref name="TValue"/> type.
5568 </summary>
5569 <remarks>
5570 Typically used when the actual argument value for a method
5571 call is not relevant.
5572 </remarks>
5573 <example>
5574 <code>
5575 // Throws an exception for a call to Remove with any string value.
5576 mock.Protected()
5577 .Setup("Remove", ItExpr.IsAny&lt;string&gt;())
5578 .Throws(new InvalidOperationException());
5579 </code>
5580 </example>
5581 <typeparam name="TValue">Type of the value.</typeparam>
5582 </member>
5583 <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
5584 <summary>
5585 Matches any value that satisfies the given predicate.
5586 </summary>
5587 <typeparam name="TValue">Type of the argument to check.</typeparam>
5588 <param name="match">The predicate used to match the method argument.</param>
5589 <remarks>
5590 Allows the specification of a predicate to perform matching
5591 of method call arguments.
5592 </remarks>
5593 <example>
5594 This example shows how to return the value <c>1</c> whenever the argument to the
5595 <c>Do</c> method is an even number.
5596 <code>
5597 mock.Protected()
5598 .Setup("Do", ItExpr.Is&lt;int&gt;(i =&gt; i % 2 == 0))
5599 .Returns(1);
5600 </code>
5601 This example shows how to throw an exception if the argument to the
5602 method is a negative number:
5603 <code>
5604 mock.Protected()
5605 .Setup("GetUser", ItExpr.Is&lt;int&gt;(i =&gt; i &lt; 0))
5606 .Throws(new ArgumentException());
5607 </code>
5608 </example>
5609 </member>
5610 <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">
5611 <summary>
5612 Matches any value that is in the range specified.
5613 </summary>
5614 <typeparam name="TValue">Type of the argument to check.</typeparam>
5615 <param name="from">The lower bound of the range.</param>
5616 <param name="to">The upper bound of the range.</param>
5617 <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>
5618 <example>
5619 The following example shows how to expect a method call
5620 with an integer argument within the 0..100 range.
5621 <code>
5622 mock.Protected()
5623 .Setup("HasInventory",
5624 ItExpr.IsAny&lt;string&gt;(),
5625 ItExpr.IsInRange(0, 100, Range.Inclusive))
5626 .Returns(false);
5627 </code>
5628 </example>
5629 </member>
5630 <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">
5631 <summary>
5632 Matches a string argument if it matches the given regular expression pattern.
5633 </summary>
5634 <param name="regex">The pattern to use to match the string argument value.</param>
5635 <example>
5636 The following example shows how to expect a call to a method where the
5637 string argument matches the given regular expression:
5638 <code>
5639 mock.Protected()
5640 .Setup("Check", ItExpr.IsRegex("[a-z]+"))
5641 .Returns(1);
5642 </code>
5643 </example>
5644 </member>
5645 <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">
5646 <summary>
5647 Matches a string argument if it matches the given regular expression pattern.
5648 </summary>
5649 <param name="regex">The pattern to use to match the string argument value.</param>
5650 <param name="options">The options used to interpret the pattern.</param>
5651 <example>
5652 The following example shows how to expect a call to a method where the
5653 string argument matches the given regular expression, in a case insensitive way:
5654 <code>
5655 mock.Protected()
5656 .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
5657 .Returns(1);
5658 </code>
5659 </example>
5660 </member>
5661 <member name="T:Moq.Protected.ProtectedExtension">
5662 <summary>
5663 Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>,
5664 allowing setups to be set for protected members by using their
5665 name as a string, rather than strong-typing them which is not possible
5666 due to their visibility.
5667 </summary>
5668 </member>
5669 <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">
5670 <summary>
5671 Enable protected setups for the mock.
5672 </summary>
5673 <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>
5674 <param name="mock">The mock to set the protected setups on.</param>
5675 </member>
5676 <member name="T:ThisAssembly">
5677 <group name="overview" title="Overview" order="0" />
5678 <group name="setups" title="Specifying setups" order="1" />
5679 <group name="returns" title="Returning values from members" order="2" />
5680 <group name="verification" title="Verifying setups" order="3" />
5681 <group name="advanced" title="Advanced scenarios" order="99" />
5682 <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />
5683 </member>
5684 <member name="T:Moq.Range">
5685 <summary>
5686 Kind of range to use in a filter specified through
5687 <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.
5688 </summary>
5689 </member>
5690 <member name="F:Moq.Range.Inclusive">
5691 <summary>
5692 The range includes the <c>to</c> and
5693 <c>from</c> values.
5694 </summary>
5695 </member>
5696 <member name="F:Moq.Range.Exclusive">
5697 <summary>
5698 The range does not include the <c>to</c> and
5699 <c>from</c> values.
5700 </summary>
5701 </member>
5702 <member name="T:Moq.DefaultValue">
5703 <summary>
5704 Determines the way default values are generated
5705 calculated for loose mocks.
5706 </summary>
5707 </member>
5708 <member name="F:Moq.DefaultValue.Empty">
5709 <summary>
5710 Default behavior, which generates empty values for
5711 value types (i.e. default(int)), empty array and
5712 enumerables, and nulls for all other reference types.
5713 </summary>
5714 </member>
5715 <member name="F:Moq.DefaultValue.Mock">
5716 <summary>
5717 Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/>
5718 is null, replaces this value with a mock (if the type
5719 can be mocked).
5720 </summary>
5721 <remarks>
5722 For sealed classes, a null value will be generated.
5723 </remarks>
5724 </member>
5725 <member name="T:Moq.Linq.MockQueryable`1">
5726 <summary>
5727 A default implementation of IQueryable for use with QueryProvider
5728 </summary>
5729 </member>
5730 <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">
5731 <summary>
5732 The <paramref name="underlyingCreateMocks"/> is a
5733 static method that returns an IQueryable of Mocks of T which is used to
5734 apply the linq specification to.
5735 </summary>
5736 </member>
5737 <member name="T:Moq.Match">
5738 <summary>
5739 Allows creation custom value matchers that can be used on setups and verification,
5740 completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
5741 matching rules.
5742 </summary><remarks>
5743 See also <see cref="T:Moq.Match`1"/>.
5744 </remarks>
5745 </member>
5746 <member name="M:Moq.Match.Matcher``1">
5747 <devdoc>
5748 Provided for the sole purpose of rendering the delegate passed to the
5749 matcher constructor if no friendly render lambda is provided.
5750 </devdoc>
5751 </member>
5752 <member name="M:Moq.Match.Create``1(System.Predicate{``0})">
5753 <summary>
5754 Initializes the match with the condition that
5755 will be checked in order to match invocation
5756 values.
5757 </summary><param name="condition">The condition to match against actual values.</param><remarks>
5758 <seealso cref="T:Moq.Match`1"/>
5759 </remarks>
5760 </member>
5761 <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">
5762 <!-- 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;]/*"/>
5763 </member>
5764 <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">
5765 <devdoc>
5766 This method is used to set an expression as the last matcher invoked,
5767 which is used in the SetupSet to allow matchers in the prop = value
5768 delegate expression. This delegate is executed in "fluent" mode in
5769 order to capture the value being set, and construct the corresponding
5770 methodcall.
5771 This is also used in the MatcherFactory for each argument expression.
5772 This method ensures that when we execute the delegate, we
5773 also track the matcher that was invoked, so that when we create the
5774 methodcall we build the expression using it, rather than the null/default
5775 value returned from the actual invocation.
5776 </devdoc>
5777 </member>
5778 <member name="T:Moq.Match`1">
5779 <summary>
5780 Allows creation custom value matchers that can be used on setups and verification,
5781 completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument
5782 matching rules.
5783 </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>
5784 The argument matching is used to determine whether a concrete
5785 invocation in the mock matches a given setup. This
5786 matching mechanism is fully extensible.
5787 </remarks><example>
5788 Creating a custom matcher is straightforward. You just need to create a method
5789 that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with
5790 your matching condition and optional friendly render expression:
5791 <code>
5792 [Matcher]
5793 public Order IsBigOrder()
5794 {
5795 return Match&lt;Order&gt;.Create(
5796 o =&gt; o.GrandTotal &gt;= 5000,
5797 /* a friendly expression to render on failures */
5798 () =&gt; IsBigOrder());
5799 }
5800 </code>
5801 This method can be used in any mock setup invocation:
5802 <code>
5803 mock.Setup(m =&gt; m.Submit(IsBigOrder()).Throws&lt;UnauthorizedAccessException&gt;();
5804 </code>
5805 At runtime, Moq knows that the return value was a matcher (note that the method MUST be
5806 annotated with the [Matcher] attribute in order to determine this) and
5807 evaluates your predicate with the actual value passed into your predicate.
5808 <para>
5809 Another example might be a case where you want to match a lists of orders
5810 that contains a particular one. You might create matcher like the following:
5811 </para>
5812 <code>
5813 public static class Orders
5814 {
5815 [Matcher]
5816 public static IEnumerable&lt;Order&gt; Contains(Order order)
5817 {
5818 return Match&lt;IEnumerable&lt;Order&gt;&gt;.Create(orders =&gt; orders.Contains(order));
5819 }
5820 }
5821 </code>
5822 Now we can invoke this static method instead of an argument in an
5823 invocation:
5824 <code>
5825 var order = new Order { ... };
5826 var mock = new Mock&lt;IRepository&lt;Order&gt;&gt;();
5827
5828 mock.Setup(x =&gt; x.Save(Orders.Contains(order)))
5829 .Throws&lt;ArgumentException&gt;();
5830 </code>
5831 </example>
5832 </member>
5833 <member name="T:Moq.FluentMockContext">
5834 <summary>
5835 Tracks the current mock and interception context.
5836 </summary>
5837 </member>
5838 <member name="P:Moq.FluentMockContext.IsActive">
5839 <summary>
5840 Having an active fluent mock context means that the invocation
5841 is being performed in "trial" mode, just to gather the
5842 target method and arguments that need to be matched later
5843 when the actual invocation is made.
5844 </summary>
5845 </member>
5846 <member name="T:Moq.MockDefaultValueProvider">
5847 <summary>
5848 A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value
5849 for non-mockeable types, and mocks for all other types (interfaces and
5850 non-sealed classes) that can be mocked.
5851 </summary>
5852 </member>
5853 <member name="T:Moq.Mocks">
5854 <summary>
5855 Allows querying the universe of mocks for those that behave
5856 according to the LINQ query specification.
5857 </summary>
5858 <devdoc>
5859 This entry-point into Linq to Mocks is the only one in the root Moq
5860 namespace to ease discovery. But to get all the mocking extension
5861 methods on Object, a using of Moq.Linq must be done, so that the
5862 polluting of the intellisense for all objects is an explicit opt-in.
5863 </devdoc>
5864 </member>
5865 <member name="M:Moq.Mocks.Of``1">
5866 <summary>
5867 Access the universe of mocks of the given type, to retrieve those
5868 that behave according to the LINQ query specification.
5869 </summary>
5870 <typeparam name="T">The type of the mocked object to query.</typeparam>
5871 </member>
5872 <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
5873 <summary>
5874 Access the universe of mocks of the given type, to retrieve those
5875 that behave according to the LINQ query specification.
5876 </summary>
5877 <param name="specification">The predicate with the setup expressions.</param>
5878 <typeparam name="T">The type of the mocked object to query.</typeparam>
5879 </member>
5880 <member name="M:Moq.Mocks.OneOf``1">
5881 <summary>
5882 Creates an mock object of the indicated type.
5883 </summary>
5884 <typeparam name="T">The type of the mocked object.</typeparam>
5885 <returns>The mocked object created.</returns>
5886 </member>
5887 <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">
5888 <summary>
5889 Creates an mock object of the indicated type.
5890 </summary>
5891 <param name="specification">The predicate with the setup expressions.</param>
5892 <typeparam name="T">The type of the mocked object.</typeparam>
5893 <returns>The mocked object created.</returns>
5894 </member>
5895 <member name="M:Moq.Mocks.CreateMockQuery``1">
5896 <summary>
5897 Creates the mock query with the underlying queriable implementation.
5898 </summary>
5899 </member>
5900 <member name="M:Moq.Mocks.CreateQueryable``1">
5901 <summary>
5902 Wraps the enumerator inside a queryable.
5903 </summary>
5904 </member>
5905 <member name="M:Moq.Mocks.CreateMocks``1">
5906 <summary>
5907 Method that is turned into the actual call from .Query{T}, to
5908 transform the queryable query into a normal enumerable query.
5909 This method is never used directly by consumers.
5910 </summary>
5911 </member>
5912 <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">
5913 <summary>
5914 Extension method used to support Linq-like setup properties that are not virtual but do have
5915 a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
5916 </summary>
5917 </member>
5918 <member name="T:Moq.QueryableMockExtensions">
5919 <summary>
5920 Helper extensions that are used by the query translator.
5921 </summary>
5922 </member>
5923 <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">
5924 <summary>
5925 Retrieves a fluent mock from the given setup expression.
5926 </summary>
5927 </member>
5928 <member name="M:Moq.Proxy.IProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">
5929 <summary>
5930 Gets an autogenerated interface with a method on it that matches the signature of the specified
5931 <paramref name="delegateType"/>.
5932 </summary>
5933 <remarks>
5934 Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance.
5935 This is how we support delegate mocking. The factory caches such interfaces and reuses them
5936 for repeated requests for the same delegate type.
5937 </remarks>
5938 <param name="delegateType">The delegate type for which an interface is required.</param>
5939 <param name="delegateInterfaceMethod">The method on the autogenerated interface.</param>
5940 </member>
5941 <member name="M:Moq.Proxy.CastleProxyFactory.CreateProxy(System.Type,Moq.Proxy.ICallInterceptor,System.Type[],System.Object[])">
5942 <inheritdoc />
5943 </member>
5944 <member name="M:Moq.Proxy.CastleProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">
5945 <inheritdoc />
5946 </member>
5947 <member name="T:Moq.Times">
5948 <summary>
5949 Defines the number of invocations allowed by a mocked method.
5950 </summary>
5951 </member>
5952 <member name="M:Moq.Times.AtLeast(System.Int32)">
5953 <summary>
5954 Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.
5955 </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
5956 </member>
5957 <member name="M:Moq.Times.AtLeastOnce">
5958 <summary>
5959 Specifies that a mocked method should be invoked one time as minimum.
5960 </summary><returns>An object defining the allowed number of invocations.</returns>
5961 </member>
5962 <member name="M:Moq.Times.AtMost(System.Int32)">
5963 <summary>
5964 Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.
5965 </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>
5966 </member>
5967 <member name="M:Moq.Times.AtMostOnce">
5968 <summary>
5969 Specifies that a mocked method should be invoked one time as maximun.
5970 </summary><returns>An object defining the allowed number of invocations.</returns>
5971 </member>
5972 <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">
5973 <summary>
5974 Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and
5975 <paramref name="callCountTo"/> times.
5976 </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">
5977 The kind of range. See <see cref="T:Moq.Range"/>.
5978 </param><returns>An object defining the allowed number of invocations.</returns>
5979 </member>
5980 <member name="M:Moq.Times.Exactly(System.Int32)">
5981 <summary>
5982 Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.
5983 </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>
5984 </member>
5985 <member name="M:Moq.Times.Never">
5986 <summary>
5987 Specifies that a mocked method should not be invoked.
5988 </summary><returns>An object defining the allowed number of invocations.</returns>
5989 </member>
5990 <member name="M:Moq.Times.Once">
5991 <summary>
5992 Specifies that a mocked method should be invoked exactly one time.
5993 </summary><returns>An object defining the allowed number of invocations.</returns>
5994 </member>
5995 <member name="M:Moq.Times.Equals(System.Object)">
5996 <summary>
5997 Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.
5998 </summary><param name="obj">
5999 The <see cref="T:System.Object"/> to compare with this instance.
6000 </param><returns>
6001 <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.
6002 </returns>
6003 </member>
6004 <member name="M:Moq.Times.GetHashCode">
6005 <summary>
6006 Returns a hash code for this instance.
6007 </summary><returns>
6008 A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
6009 </returns>
6010 </member>
6011 <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">
6012 <summary>
6013 Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.
6014 </summary><param name="left">
6015 The first <see cref="T:Moq.Times"/>.
6016 </param><param name="right">
6017 The second <see cref="T:Moq.Times"/>.
6018 </param><returns>
6019 <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.
6020 </returns>
6021 </member>
6022 <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">
6023 <summary>
6024 Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.
6025 </summary><param name="left">
6026 The first <see cref="T:Moq.Times"/>.
6027 </param><param name="right">
6028 The second <see cref="T:Moq.Times"/>.
6029 </param><returns>
6030 <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.
6031 </returns>
6032 </member>
6033 </members>
6034 </doc>