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