+++ /dev/null
-## KancolleSniffer.Testで使用しているソフトウェア
-
-### [ExpressionToCode](https://github.com/EamonNerbonne/ExpressionToCode)
-
-Apacheライセンスで利用しています。ライセンス全文は[Licenses/Apache.txt](Licenses/Apache.txt)にあります。ソースコードは https://github.com/EamonNerbonne/ExpressionToCode/releases/tag/1.5.3 にあります。
-
-### [Moq](https://github.com/Moq/moq4)
-
-以下のライセンスで利用しています。ソースコードは https://github.com/Moq/moq4/tree/44e455446241c5867a25801cb31f6754446325aa にあります。
-
-> Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD
-> http://code.google.com/p/moq/
-> All rights reserved.
->
-> Redistribution and use in source and binary forms,
-> with or without modification, are permitted provided
-> that the following conditions are met:
->
-> * Redistributions of source code must retain the
-> above copyright notice, this list of conditions and
-> the following disclaimer.
->
-> * Redistributions in binary form must reproduce
-> the above copyright notice, this list of conditions
-> and the following disclaimer in the documentation
-> and/or other materials provided with the distribution.
->
-> * Neither the name of Clarius Consulting, Manas Technology Solutions or InSTEDD nor the
-> names of its contributors may be used to endorse
-> or promote products derived from this software
-> without specific prior written permission.
->
-> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
-> CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
-> INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-> MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-> DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-> SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-> SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-> INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-> WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-> NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-> SUCH DAMAGE.
+++ /dev/null
-<?xml version="1.0"?>\r
-<doc>\r
- <assembly>\r
- <name>Moq</name>\r
- </assembly>\r
- <members>\r
- <member name="T:Moq.Language.ISetupConditionResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <typeparam name="TResult"></typeparam>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Setups the get.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="expression">The expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.IInterceptStrategy.HandleIntercept(Moq.Proxy.ICallContext,Moq.InterceptorContext,Moq.CurrentInterceptContext)">\r
- <summary>\r
- Handle interception\r
- </summary>\r
- <param name="invocation">the current invocation context</param>\r
- <param name="ctx">shared data for the interceptor as a whole</param>\r
- <param name="localCtx">shared data among the strategies during a single interception</param>\r
- <returns>InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop</returns>\r
- </member>\r
- <member name="T:Moq.IMock`1">\r
- <summary>\r
- Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person>\r
- are possible. Only covers the covariant members of Mock<T>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetNonPublicEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- Searches also in non public events.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetAncestorTypes(System.Type)">\r
- <summary>\r
- Given a type return all of its ancestors, both types and interfaces.\r
- </summary>\r
- <param name="initialType">The type to find immediate ancestors of</param>\r
- </member>\r
- <member name="T:Moq.Language.ICallback">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IHideObjectMembers">\r
- <summary>\r
- Helper interface used to hide the base <see cref="T:System.Object"/> \r
- members from the fluent API to make it much cleaner \r
- in Visual Studio intellisense.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetType">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetHashCode">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.ToString">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean \r
- value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The argument type of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value. \r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring \r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback((string command) => Console.WriteLine(command));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.ICallback`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads for callbacks on\r
- setups that return a value.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- Note that in the case of value-returning methods, after the <c>Callback</c>\r
- call you can still specify the return value.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value.\r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring\r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback(command => Console.WriteLine(command))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IRaise`1">\r
- <summary>\r
- Defines the <c>Raises</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is met.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The event arguments to pass for the raised event.</param>\r
- <example>\r
- The following example shows how to raise an event when \r
- the setup is met:\r
- <code>\r
- var mock = new Mock<IContainer>();\r
- \r
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))\r
- .Raises(add => add.Added += null, EventArgs.Empty);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">\r
- <summary>\r
- Specifies the custom event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="T:Moq.Language.IReturns`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the method call:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value when the method is called:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the method \r
- is executed and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value which is evaluated lazily at the time of the invocation.\r
- <para>\r
- The lookup list can change between invocations and the setup \r
- will return different values accordingly. Also, notice how the specific \r
- string argument is retrieved by simply declaring it as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Returns((string command) => returnValues[command]);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.CallBase">\r
- <summary>\r
- Calls the real method of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real method of the object.</returns>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2) => arg1 + arg2);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Proxy.ProxyMethodHook">\r
- <summary>\r
- Hook used to tells Castle which methods to proxy in mocked classes.\r
- \r
- Here we proxy the default methods Castle suggests (everything Object's methods)\r
- plus Object.ToString(), so we can give mocks useful default names.\r
- \r
- This is required to allow Moq to mock ToString on proxy *class* implementations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.ProxyMethodHook.ShouldInterceptMethod(System.Type,System.Reflection.MethodInfo)">\r
- <summary>\r
- Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString().\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Proxy.InterfaceProxy">\r
- <summary>\r
- <para>The base class used for all our interface-inheriting proxies, which overrides the default\r
- Object.ToString() behavior, to route it via the mock by default, unless overriden by a\r
- real implementation.</para>\r
- \r
- <para>This is required to allow Moq to mock ToString on proxy *interface* implementations.</para>\r
- </summary>\r
- <remarks>\r
- <para><strong>This is internal to Moq and should not be generally used.</strong></para>\r
- \r
- <para>Unfortunately it must be public, due to cross-assembly visibility issues with reflection, \r
- see github.com/Moq/moq4/issues/98 for details.</para>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Proxy.InterfaceProxy.ToString">\r
- <summary>\r
- Overrides the default ToString implementation to instead find the mock for this mock.Object,\r
- and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate\r
- mocks and mock object instances in error messages.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ISetupSequentialResult`1">\r
- <summary>\r
- Language for ReturnSequence\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">\r
- <summary>\r
- Returns value\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.CallBase">\r
- <summary>\r
- Calls original method\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">\r
- <summary>\r
- The first method call or member access will be the \r
- last segment of the expression (depth-first traversal), \r
- which is the one we have to Setup rather than FluentMock.\r
- And the last one is the one we have to Mock.Get rather \r
- than FluentMock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Mock">\r
- <summary>\r
- Base class for mocks and static helper class with methods that\r
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to\r
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.#ctor">\r
- <summary>\r
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Get``1(``0)">\r
- <summary>\r
- Retrieves the mock object for the given object instance.\r
- </summary><typeparam name="T">\r
- Type of the mock to retrieve. Can be omitted as it's inferred\r
- from the object instance passed in as the <paramref name="mocked"/> instance.\r
- </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">\r
- The received <paramref name="mocked"/> instance\r
- was not created by Moq.\r
- </exception><example group="advanced">\r
- The following example shows how to add a new setup to an object\r
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather\r
- the object associated with it:\r
- <code>\r
- // Typed instance, not the mock, is retrieved from some test API.\r
- HttpContextBase context = GetMockContext();\r
-\r
- // context.Request is the typed object from the "real" API\r
- // so in order to add a setup to it, we need to get\r
- // the mock that "owns" it\r
- Mock<HttpRequestBase> request = Mock.Get(context.Request);\r
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)\r
- .Returns(tempUrl);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Verify">\r
- <summary>\r
- Verifies that all verifiable expectations have been met.\r
- </summary><example group="verification">\r
- This example sets up an expectation and marks it as verifiable. After\r
- the mock is used, a <c>Verify()</c> call is issued on the mock\r
- to ensure the method in the setup was invoked:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory.\r
- this.Verify();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>\r
- </member>\r
- <member name="M:Moq.Mock.VerifyAll">\r
- <summary>\r
- Verifies all expectations regardless of whether they have\r
- been flagged as verifiable.\r
- </summary><example group="verification">\r
- This example sets up an expectation without marking it as verifiable. After\r
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock\r
- to ensure that all expectations are met:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory, even\r
- // that expectation was not marked as verifiable.\r
- this.VerifyAll();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception> \r
- </member>\r
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">\r
- <summary>\r
- Gets the interceptor target for the given expression and root mock, \r
- building the intermediate hierarchy of mock objects if necessary.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.As``1">\r
- <summary>\r
- Adds an interface implementation to the mock,\r
- allowing setups to be specified for it.\r
- </summary><remarks>\r
- This method can only be called before the first use\r
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which\r
- point the runtime type has already been generated\r
- and no more interfaces can be added to it.\r
- <para>\r
- Also, <typeparamref name="TInterface"/> must be an\r
- interface and not a class, which must be specified\r
- when creating the mock instead.\r
- </para>\r
- </remarks><exception cref="T:System.InvalidOperationException">\r
- The mock type\r
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.\r
- </exception><exception cref="T:System.ArgumentException">\r
- The <typeparamref name="TInterface"/> specified\r
- is not an interface.\r
- </exception><example>\r
- The following example creates a mock for the main interface\r
- and later adds <see cref="T:System.IDisposable"/> to it to verify\r
- it's called by the consumer code:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
-\r
- // add IDisposable interface\r
- var disposable = mock.As<IDisposable>();\r
- disposable.Setup(d => d.Dispose()).Verifiable();\r
- </code>\r
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>\r
- </member>\r
- <member name="P:Moq.Mock.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.Object">\r
- <summary>\r
- Gets the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.MockedType">\r
- <summary>\r
- Retrieves the type of the mocked object, its generic type argument.\r
- This is used in the auto-mocking of hierarchy access.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DelegateInterfaceMethod">\r
- <summary>\r
- If this is a mock of a delegate, this property contains the method\r
- on the autogenerated interface so that we can convert setup + verify\r
- expressions on the delegate into expressions on the interface proxy.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.IsDelegateMock">\r
- <summary>\r
- Allows to check whether expression conversion to the <see cref="P:Moq.Mock.DelegateInterfaceMethod"/> \r
- must be performed on the mock, without causing unnecessarily early initialization of \r
- the mock instance, which breaks As{T}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValueProvider">\r
- <summary>\r
- Specifies the class that will determine the default \r
- value to return when invocations are made that \r
- have no setups and need to return a default \r
- value (for loose mocks).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.ImplementedInterfaces">\r
- <summary>\r
- Exposes the list of extra interfaces implemented by the mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockRepository">\r
- <summary>\r
- Utility repository class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the repository constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This repository class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="repository">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- repository.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the repository \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Loose);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the repository\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the repository\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- repository.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the repository with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = repository.Create<IFoo>(MockBehavior.Loose);\r
- var bar = repository.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- repository.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="T:Moq.MockFactory">\r
- <summary>\r
- Utility factory class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the factory constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This factory class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="factory">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- factory.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the factory \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Loose);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the factory\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the factory\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- factory.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the factory with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- var bar = factory.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the factory with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the factory.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- // use mock on tests\r
- \r
- factory.VerifyAll();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time and with the \r
- the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>("Foo", 25, true);\r
- // use mock on tests\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/>.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/> \r
- and with the the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory, passing \r
- constructor arguments:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Implements creation of a new mock within the factory.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">The behavior for the new mock.</param>\r
- <param name="args">Optional arguments for the construction of the mock.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Verify">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyAll">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">\r
- <summary>\r
- Invokes <paramref name="verifyAction"/> for each mock \r
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting \r
- <see cref="T:Moq.MockVerificationException"/> that might be \r
- thrown from the action.\r
- </summary>\r
- <param name="verifyAction">The action to execute against \r
- each mock.</param>\r
- </member>\r
- <member name="P:Moq.MockFactory.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called \r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for \r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.Mocks">\r
- <summary>\r
- Gets the mocks that have been created by this factory and \r
- that will get verified together.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the repository with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the repository.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="T:Moq.EmptyDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for invocations that do not have setups or return values, with loose mocks.\r
- This is the default behavior for a mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IDefaultValueProvider">\r
- <summary>\r
- Interface to be implemented by classes that determine the\r
- default value of non-expected invocations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">\r
- <summary>\r
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.\r
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">\r
- <summary>\r
- Provides a value for the given member and arguments.\r
- </summary><param name="member">\r
- The member to provide a default value for.\r
- </param>\r
- </member>\r
- <member name="T:Moq.ExpressionStringBuilder">\r
- <summary>\r
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable \r
- string representation for the failure message.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ICallbackResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IThrows">\r
- <summary>\r
- Defines the <c>Throws</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">\r
- <summary>\r
- Specifies the exception to throw when the method is invoked.\r
- </summary>\r
- <param name="exception">Exception instance to throw.</param>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws``1">\r
- <summary>\r
- Specifies the type of exception to throw when the method is invoked.\r
- </summary>\r
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IThrowsResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IOccurrence">\r
- <summary>\r
- Defines occurrence members to constraint setups.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">\r
- <summary>\r
- The expected invocation can happen at most once.\r
- </summary>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMostOnce();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">\r
- <summary>\r
- The expected invocation can happen at most specified number of times.\r
- </summary>\r
- <param name="callCount">The number of times to accept calls.</param>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMost( 5 );\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IVerifies">\r
- <summary>\r
- Defines the <c>Verifiable</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met, and specifies a message for failures.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable("Ping should be executed always!");\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MethodCallReturn">\r
- <devdoc>\r
- We need this non-generics base class so that \r
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from \r
- generic code.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackGetter`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property getter setups.\r
- </summary>\r
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the property is retrieved.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IReturnsGetter`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb for property get setups.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the property getter call:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return for the property.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example>\r
- Return a calculated value when the property is retrieved:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the property \r
- is retrieved and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.CallBase">\r
- <summary>\r
- Calls the real property of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real property of the object.</returns>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:System.Action`5">\r
- <summary>\r
- Encapsulates a method that has five parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`6">\r
- <summary>\r
- Encapsulates a method that has five parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`6">\r
- <summary>\r
- Encapsulates a method that has six parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`7">\r
- <summary>\r
- Encapsulates a method that has six parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`7">\r
- <summary>\r
- Encapsulates a method that has seven parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`8">\r
- <summary>\r
- Encapsulates a method that has seven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`8">\r
- <summary>\r
- Encapsulates a method that has eight parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`9">\r
- <summary>\r
- Encapsulates a method that has eight parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`9">\r
- <summary>\r
- Encapsulates a method that has nine parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`10">\r
- <summary>\r
- Encapsulates a method that has nine parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`10">\r
- <summary>\r
- Encapsulates a method that has ten parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`11">\r
- <summary>\r
- Encapsulates a method that has ten parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`11">\r
- <summary>\r
- Encapsulates a method that has eleven parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`12">\r
- <summary>\r
- Encapsulates a method that has eleven parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`12">\r
- <summary>\r
- Encapsulates a method that has twelve parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`13">\r
- <summary>\r
- Encapsulates a method that has twelve parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`13">\r
- <summary>\r
- Encapsulates a method that has thirteen parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`14">\r
- <summary>\r
- Encapsulates a method that has thirteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`14">\r
- <summary>\r
- Encapsulates a method that has fourteen parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`15">\r
- <summary>\r
- Encapsulates a method that has fourteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`15">\r
- <summary>\r
- Encapsulates a method that has fifteen parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`16">\r
- <summary>\r
- Encapsulates a method that has fifteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:System.Action`16">\r
- <summary>\r
- Encapsulates a method that has sixteen parameters and does not return a value.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>\r
- </member>\r
- <member name="T:System.Func`17">\r
- <summary>\r
- Encapsulates a method that has sixteen parameters and returns a value of the type specified by the <typeparamref name="TResult" /> parameter.\r
- </summary>\r
- <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T4">The type of the fourth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T5">The type of the fifth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T6">The type of the sixth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T7">The type of the seventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T8">The type of the eighth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T9">The type of the nineth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T10">The type of the tenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T11">The type of the eleventh parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T12">The type of the twelfth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth parameter of the method that this delegate encapsulates.</typeparam>\r
- <typeparam name="TResult">The type of the return value of the method that this delegate encapsulates.</typeparam>\r
- <param name="arg1">The first parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg2">The second parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg3">The third parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg4">The fourth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg5">The fifth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg6">The sixth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg7">The seventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg8">The eighth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg9">The nineth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg10">The tenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg11">The eleventh parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg12">The twelfth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg13">The thirteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg14">The fourteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg15">The fifteenth parameter of the method that this delegate encapsulates.</param>\r
- <param name="arg16">The sixteenth parameter of the method that this delegate encapsulates.</param>\r
- <return>The return value of the method that this delegate encapsulates.</return>\r
- </member>\r
- <member name="T:Moq.MockExtensions">\r
- <summary>\r
- Provides additional methods on mocks.\r
- </summary>\r
- <remarks>\r
- Those methods are useful for Testeroids support. \r
- </remarks>\r
- </member>\r
- <member name="M:Moq.MockExtensions.ResetCalls(Moq.Mock)">\r
- <summary>\r
- Resets the calls previously made on the specified mock.\r
- </summary>\r
- <param name="mock">The mock whose calls need to be reset.</param>\r
- </member>\r
- <member name="M:Moq.MockExtensions.Reset(Moq.Mock)">\r
- <summary>\r
- Resets mock state, including setups and any previously made calls.\r
- </summary>\r
- <param name="mock">The mock that needs to be reset.</param>\r
- </member>\r
- <member name="T:Moq.MockSequence">\r
- <summary>\r
- Helper class to setup a full trace between many mocks\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequence.#ctor">\r
- <summary>\r
- Initialize a trace setup\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockSequence.Cyclic">\r
- <summary>\r
- Allow sequence to be repeated\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockSequenceHelper">\r
- <summary>\r
- define nice api\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">\r
- <summary>\r
- Perform an expectation in the trace.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MatcherAttribute">\r
- <summary>\r
- Marks a method as a matcher, which allows complete replacement \r
- of the built-in <see cref="T:Moq.It"/> class with your own argument \r
- matching rules.\r
- </summary>\r
- <remarks>\r
- <b>This feature has been deprecated in favor of the new \r
- and simpler <see cref="T:Moq.Match`1"/>.\r
- </b>\r
- <para>\r
- The argument matching is used to determine whether a concrete \r
- invocation in the mock matches a given setup. This \r
- matching mechanism is fully extensible. \r
- </para>\r
- <para>\r
- There are two parts of a matcher: the compiler matcher \r
- and the runtime matcher.\r
- <list type="bullet">\r
- <item>\r
- <term>Compiler matcher</term>\r
- <description>Used to satisfy the compiler requirements for the \r
- argument. Needs to be a method optionally receiving any arguments \r
- you might need for the matching, but with a return type that \r
- matches that of the argument. \r
- <para>\r
- Let's say I want to match a lists of orders that contains \r
- a particular one. I might create a compiler matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an \r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- Note that the return value from the compiler matcher is irrelevant. \r
- This method will never be called, and is just used to satisfy the \r
- compiler and to signal Moq that this is not a method that we want \r
- to be invoked at runtime.\r
- </description>\r
- </item>\r
- <item>\r
- <term>Runtime matcher</term>\r
- <description>\r
- The runtime matcher is the one that will actually perform evaluation \r
- when the test is run, and is defined by convention to have the \r
- same signature as the compiler matcher, but where the return \r
- value is the first argument to the call, which contains the \r
- object received by the actual invocation at runtime:\r
- <code>\r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- </code>\r
- At runtime, the mocked method will be invoked with a specific \r
- list of orders. This value will be passed to this runtime \r
- matcher as the first argument, while the second argument is the \r
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).\r
- <para>\r
- The boolean returned determines whether the given argument has been \r
- matched. If all arguments to the expected method are matched, then \r
- the setup matches and is evaluated.\r
- </para>\r
- </description>\r
- </item>\r
- </list>\r
- </para>\r
- Using this extensible infrastructure, you can easily replace the entire \r
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the \r
- typical (and annoying) lengthy expressions that result when you have \r
- multiple arguments that use generics.\r
- </remarks>\r
- <example>\r
- The following is the complete example explained above:\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- \r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- }\r
- </code>\r
- And the concrete test using this matcher:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- \r
- // use mock, invoke Save, and have the matcher filter.\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Mock`1">\r
- <summary>\r
- Provides a mock implementation of <typeparamref name="T"/>.\r
- </summary><remarks>\r
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.\r
- <para>\r
- The behavior of the mock with regards to the setups and the actual calls is determined\r
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>\r
- constructor.\r
- </para>\r
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">\r
- The following example shows establishing setups with specific values\r
- for method invocations:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.True(order.IsFilled);\r
- </code>\r
- The following example shows how to use the <see cref="T:Moq.It"/> class\r
- to specify conditions for arguments instead of specific values:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- // shows how to expect a value within a range\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
-\r
- // shows how to throw for unexpected calls.\r
- mock.Setup(x => x.Remove(\r
- It.IsAny<string>(),\r
- It.IsAny<int>()))\r
- .Throws(new InvalidOperationException());\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.False(order.IsFilled);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">\r
- <summary>\r
- Ctor invoked by AsTInterface exclusively.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>();</code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with\r
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only for classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>\r
- </example><param name="behavior">Behavior of the mock.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with\r
- the given constructor arguments for the class.\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only to classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.ToString">\r
- <summary>\r
- Returns the name of the mock\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a void method.\r
- </summary><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a value returning method.\r
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">\r
- <code>\r
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property getter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property getter,\r
- the latest one wins and is the one that will be executed.\r
- </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">\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- <para>\r
- This overloads allows the use of a callback already\r
- typed for the property type.\r
- </para>\r
- </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">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.Stub(v => v.Value);\r
- </code>\r
- After the <c>Stub</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
-\r
- v.Value = 5;\r
- Assert.Equal(5, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. This overload\r
- allows setting the initial value for the property. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.SetupProperty(v => v.Value, 5);\r
- </code>\r
- After the <c>SetupProperty</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
- // Initial value was stored\r
- Assert.Equal(5, v.Value);\r
-\r
- // New value set which changes the initial value\r
- v.Value = 6;\r
- Assert.Equal(6, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupAllProperties">\r
- <summary>\r
- Specifies that the all properties on the mock should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing"). The default value for each property will be the\r
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.\r
- </summary><remarks>\r
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,\r
- the mocked default values will also get all properties setup recursively.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given invocation\r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true);\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> argument is\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));\r
- </code>\r
- </example><example>\r
- This example shows how to invoke an event with a custom event arguments\r
- class in a view that will cause its corresponding presenter to\r
- react by changing its state:\r
- <code>\r
- var mockView = new Mock<IOrdersView>();\r
- var presenter = new OrdersPresenter(mockView.Object);\r
-\r
- // Check that the presenter has no selection by default\r
- Assert.Null(presenter.SelectedOrder);\r
-\r
- // Raise the event with a specific arguments data\r
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });\r
-\r
- // Now the presenter reacted to the event, and we have a selected order\r
- Assert.NotNull(presenter.SelectedOrder);\r
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument for a non-EventHandler typed event.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> arguments are\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a custom event that does not adhere to \r
- the standard <c>EventHandler</c>:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="P:Moq.Mock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.Name">\r
- <summary>\r
- Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.DelegateInterfaceMethod">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.MockLegacyExtensions">\r
- <summary>\r
- Provides legacy API members as extensions so that \r
- existing code continues to compile, but new code \r
- doesn't see then.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.ObsoleteMockExtensions">\r
- <summary>\r
- Provides additional methods on mocks.\r
- </summary>\r
- <devdoc>\r
- Provided as extension methods as they confuse the compiler \r
- with the overloads taking Action.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to \r
- to a property setter, regardless of its value.\r
- </summary>\r
- <remarks>\r
- If more than one setup is set for the same property setter, \r
- the latest one wins and is the one that will be executed.\r
- </remarks>\r
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>\r
- <typeparam name="T">Type of the mock.</typeparam>\r
- <param name="mock">The target mock for the setup.</param>\r
- <param name="expression">Lambda expression that specifies the property setter.</param>\r
- <example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended);\r
- </code>\r
- </example>\r
- <devdoc>\r
- This method is not legacy, but must be on an extension method to avoid \r
- confusing the compiler with the new Action syntax.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Verifies that a property has been set on the mock, regarless of its value.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times, and specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="T:Moq.SequenceExtensions">\r
- <summary>\r
- Helper for sequencing return values in the same method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Return a sequence of values, once per call.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Casts the expression to a lambda expression, removing \r
- a cast if there's any.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.\r
- </summary>\r
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Creates an expression that casts the given expression to the <typeparamref name="T"/> \r
- type.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">\r
- <devdoc>\r
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 \r
- is fixed.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.GetCallInfo(System.Linq.Expressions.LambdaExpression,Moq.Mock)">\r
- <summary>\r
- Extracts, into a common form, information from a <see cref="T:System.Linq.Expressions.LambdaExpression"/>\r
- around either a <see cref="T:System.Linq.Expressions.MethodCallExpression"/> (for a normal method call)\r
- or a <see cref="T:System.Linq.Expressions.InvocationExpression"/> (for a delegate invocation).\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Extensions.IsDelegate(System.Type)">\r
- <summary>\r
- Tests if a type is a delegate type (subclasses <see cref="T:System.Delegate"/>).\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Evaluator">\r
- <summary>\r
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.\r
- </summary>\r
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>\r
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <param name="fnCanBeEvaluated">A function that decides whether a given expression\r
- node can be part of the local function.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="T:Moq.Evaluator.SubtreeEvaluator">\r
- <summary>\r
- Evaluates and replaces sub-trees when first candidate is reached (top-down)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Evaluator.Nominator">\r
- <summary>\r
- Performs bottom-up analysis to determine which nodes can possibly\r
- be part of an evaluated sub-tree.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">\r
- <summary>\r
- Ensures the given <paramref name="value"/> is not null.\r
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">\r
- <summary>\r
- Ensures the given string <paramref name="value"/> is not null or empty.\r
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or \r
- <see cref="T:System.ArgumentException"/> in the latter.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range including the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range excluding the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="T:Moq.IMocked`1">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IMocked">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked`1.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Interceptor">\r
- <summary>\r
- Implements the actual interception and method invocation for \r
- all mocks.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupSetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackSetter`1">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property setter setups.\r
- </summary>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">\r
- <summary>\r
- Specifies a callback to invoke when the property is set that receives the \r
- property value being set.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupSet(x => x.Suspended)\r
- .Callback((bool state) => Console.WriteLine(state));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.It">\r
- <summary>\r
- Allows the specification of a matching condition for an\r
- argument in a method invocation, rather than a specific\r
- argument value. "It" refers to the argument being matched.\r
- </summary><remarks>\r
- This class allows the setup to match a method invocation\r
- with an arbitrary value, with a value in a specified range, or\r
- even one that matches a given predicate.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.It.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary><remarks>\r
- Typically used when the actual argument value for a method\r
- call is not relevant.\r
- </remarks><example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());\r
- </code>\r
- </example><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.IsNotNull``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type, except null.\r
- </summary><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>\r
- Allows the specification of a predicate to perform matching\r
- of method call arguments.\r
- </remarks><example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the\r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the\r
- method is a negative number:\r
- <code>\r
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </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">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(``0[])">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with a value of 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value not found from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(``0[])">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument of any value except 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </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>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">\r
- <summary>\r
- Matcher to treat static functions as matchers.\r
- \r
- mock.Setup(x => x.StringMethod(A.MagicString()));\r
- \r
- public static class A \r
- {\r
- [Matcher]\r
- public static string MagicString() { return null; }\r
- public static bool MagicString(string arg)\r
- {\r
- return arg == "magic";\r
- }\r
- }\r
- \r
- Will succeed if: mock.Object.StringMethod("magic");\r
- and fail with any other call.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockBehavior">\r
- <summary>\r
- Options to customize the behavior of the mock. \r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Strict">\r
- <summary>\r
- Causes the mock to always throw \r
- an exception for invocations that don't have a \r
- corresponding setup.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Loose">\r
- <summary>\r
- Will never throw exceptions, returning default \r
- values when necessary (null for reference types, \r
- zero for value types or empty enumerables and arrays).\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Default">\r
- <summary>\r
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException">\r
- <summary>\r
- Exception thrown by mocks when setups are not matched, \r
- the mock is not properly setup, etc.\r
- </summary>\r
- <remarks>\r
- A distinct exception type is provided so that exceptions \r
- thrown by the mock can be differentiated in tests that \r
- expect other exceptions to be thrown (i.e. ArgumentException).\r
- <para>\r
- Richer exception hierarchy/types are not provided as \r
- tests typically should <b>not</b> catch or expect exceptions \r
- from the mocks. These are typically the result of changes \r
- in the tested class or its collaborators implementation, and \r
- result in fixes in the mock setup so that they dissapear and \r
- allow the test to pass.\r
- </para>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.MockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- <param name="info">Serialization information.</param>\r
- <param name="context">Streaming context.</param>\r
- </member>\r
- <member name="M:Moq.MockException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- <param name="info">Serialization information.</param>\r
- <param name="context">Streaming context.</param>\r
- </member>\r
- <member name="P:Moq.MockException.IsVerificationError">\r
- <summary>\r
- Indicates whether this exception is a verification fault raised by Verify()\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException.ExceptionReason">\r
- <summary>\r
- Made internal as it's of no use for \r
- consumers, but it's important for \r
- our own tests.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockVerificationException">\r
- <devdoc>\r
- Used by the mock factory to accumulate verification \r
- failures.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.MockVerificationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Properties.Resources">\r
- <summary>\r
- A strongly-typed resource class, for looking up localized strings, etc.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ResourceManager">\r
- <summary>\r
- Returns the cached ResourceManager instance used by this class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.Culture">\r
- <summary>\r
- Overrides the current thread's CurrentUICulture property for all\r
- resource lookups using this strongly typed resource class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">\r
- <summary>\r
- Looks up a localized string similar to Value cannot be an empty string..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">\r
- <summary>\r
- Looks up a localized string similar to Can only add interfaces to the mock..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">\r
- <summary>\r
- Looks up a localized string similar to Can't set return value for void method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForDelegate">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">\r
- <summary>\r
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.EventNofFound">\r
- <summary>\r
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">\r
- <summary>\r
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockClass">\r
- <summary>\r
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">\r
- <summary>\r
- 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.\r
- Please cast the argument to one of the supported types: {1}.\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">\r
- <summary>\r
- Looks up a localized string similar to LINQ method '{0}' not supported..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MemberMissing">\r
- <summary>\r
- Looks up a localized string similar to Member {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MethodIsPublic">\r
- <summary>\r
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:\r
- mock.Setup(x => x.{1}());\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">\r
- <summary>\r
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.\r
- {2}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">\r
- <summary>\r
- Looks up a localized string similar to Expected only {0} calls to {1}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">\r
- <summary>\r
- Looks up a localized string similar to Expected only one call to {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least once, but was never performed: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoSetup">\r
- <summary>\r
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">\r
- <summary>\r
- Looks up a localized string similar to Object instance was not created by Moq..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Out expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a getter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyMissing">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is write-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is read-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a setter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Ref expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">\r
- <summary>\r
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupLambda">\r
- <summary>\r
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNever">\r
- <summary>\r
- Looks up a localized string similar to Invocation {0} should not have been made..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a method invocation: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotProperty">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property access: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotSetter">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property setter invocation..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not implement required interface {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not from required type {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">\r
- <summary>\r
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:\r
- mock.Setup(x => x.{1}).Returns(value);\r
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one\r
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">\r
- <summary>\r
- Looks up a localized string similar to Unsupported expression: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">\r
- <summary>\r
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">\r
- <summary>\r
- 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}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMember">\r
- <summary>\r
- Looks up a localized string similar to Member {0} is not supported for protected mocking..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression can only use static custom matchers..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerficationFailed">\r
- <summary>\r
- Looks up a localized string similar to The following setups were not matched:\r
- {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Protected.IProtectedMock`1">\r
- <summary>\r
- Allows setups to be specified for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for a void method invocation with the given \r
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="voidMethodName">The name of the void method to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for an invocation on a property or a non void method with the given \r
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TResult">The return type of the method or property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">\r
- <summary>\r
- Specifies a setup for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="value">The property value. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for a void method with the given <paramref name="methodName"/>,\r
- optionally specifying arguments for the method call. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the void method to be verified.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for an invocation on a property or a non void method with the given \r
- <paramref name="methodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TResult">The type of return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">\r
- <summary>\r
- Specifies a verify for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="value">The property value.</param>\r
- <typeparam name="TProperty">The type of the property. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>\r
- </member>\r
- <member name="T:Moq.Protected.ItExpr">\r
- <summary>\r
- Allows the specification of a matching condition for an \r
- argument in a protected member setup, rather than a specific \r
- argument value. "ItExpr" refers to the argument being matched.\r
- </summary>\r
- <remarks>\r
- <para>Use this variant of argument matching instead of \r
- <see cref="T:Moq.It"/> for protected setups.</para>\r
- This class allows the setup to match a method invocation \r
- with an arbitrary value, with a value in a specified range, or \r
- even one that matches a given predicate, or null.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsNull``1">\r
- <summary>\r
- Matches a null value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Required for protected mocks as the null value cannot be used \r
- directly as it prevents proper method overload selection.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with a null string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsNull<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Typically used when the actual argument value for a method \r
- call is not relevant.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsAny<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="match">The predicate used to match the method argument.</param>\r
- <remarks>\r
- Allows the specification of a predicate to perform matching \r
- of method call arguments.\r
- </remarks>\r
- <example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the \r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Protected()\r
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the \r
- method is a negative number:\r
- <code>\r
- mock.Protected()\r
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="from">The lower bound of the range.</param>\r
- <param name="to">The upper bound of the range.</param>\r
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>\r
- <example>\r
- The following example shows how to expect a method call \r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Protected()\r
- .Setup("HasInventory",\r
- ItExpr.IsAny<string>(),\r
- ItExpr.IsInRange(0, 100, Range.Inclusive))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <param name="options">The options used to interpret the pattern.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Protected.ProtectedExtension">\r
- <summary>\r
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>, \r
- allowing setups to be set for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">\r
- <summary>\r
- Enable protected setups for the mock.\r
- </summary>\r
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>\r
- <param name="mock">The mock to set the protected setups on.</param>\r
- </member>\r
- <member name="T:ThisAssembly">\r
- <group name="overview" title="Overview" order="0" />\r
- <group name="setups" title="Specifying setups" order="1" />\r
- <group name="returns" title="Returning values from members" order="2" />\r
- <group name="verification" title="Verifying setups" order="3" />\r
- <group name="advanced" title="Advanced scenarios" order="99" />\r
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />\r
- </member>\r
- <member name="T:Moq.Range">\r
- <summary>\r
- Kind of range to use in a filter specified through \r
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Inclusive">\r
- <summary>\r
- The range includes the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Exclusive">\r
- <summary>\r
- The range does not include the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.DefaultValue">\r
- <summary>\r
- Determines the way default values are generated \r
- calculated for loose mocks.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Empty">\r
- <summary>\r
- Default behavior, which generates empty values for \r
- value types (i.e. default(int)), empty array and \r
- enumerables, and nulls for all other reference types.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Mock">\r
- <summary>\r
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/> \r
- is null, replaces this value with a mock (if the type \r
- can be mocked). \r
- </summary>\r
- <remarks>\r
- For sealed classes, a null value will be generated.\r
- </remarks>\r
- </member>\r
- <member name="T:Moq.Linq.MockQueryable`1">\r
- <summary>\r
- A default implementation of IQueryable for use with QueryProvider\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">\r
- <summary>\r
- The <paramref name="underlyingCreateMocks"/> is a \r
- static method that returns an IQueryable of Mocks of T which is used to \r
- apply the linq specification to.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Match">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><remarks>\r
- See also <see cref="T:Moq.Match`1"/>.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Matcher``1">\r
- <devdoc>\r
- Provided for the sole purpose of rendering the delegate passed to the \r
- matcher constructor if no friendly render lambda is provided.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">\r
- <summary>\r
- Initializes the match with the condition that\r
- will be checked in order to match invocation\r
- values.\r
- </summary><param name="condition">The condition to match against actual values.</param><remarks>\r
- <seealso cref="T:Moq.Match`1"/>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">\r
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>\r
- </member>\r
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">\r
- <devdoc>\r
- This method is used to set an expression as the last matcher invoked, \r
- which is used in the SetupSet to allow matchers in the prop = value \r
- delegate expression. This delegate is executed in "fluent" mode in \r
- order to capture the value being set, and construct the corresponding \r
- methodcall.\r
- This is also used in the MatcherFactory for each argument expression.\r
- This method ensures that when we execute the delegate, we \r
- also track the matcher that was invoked, so that when we create the \r
- methodcall we build the expression using it, rather than the null/default \r
- value returned from the actual invocation.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.Match`1">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>\r
- The argument matching is used to determine whether a concrete\r
- invocation in the mock matches a given setup. This\r
- matching mechanism is fully extensible.\r
- </remarks><example>\r
- Creating a custom matcher is straightforward. You just need to create a method\r
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with \r
- your matching condition and optional friendly render expression:\r
- <code>\r
- [Matcher]\r
- public Order IsBigOrder()\r
- {\r
- return Match<Order>.Create(\r
- o => o.GrandTotal >= 5000, \r
- /* a friendly expression to render on failures */\r
- () => IsBigOrder());\r
- }\r
- </code>\r
- This method can be used in any mock setup invocation:\r
- <code>\r
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();\r
- </code>\r
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be \r
- annotated with the [Matcher] attribute in order to determine this) and\r
- evaluates your predicate with the actual value passed into your predicate.\r
- <para>\r
- Another example might be a case where you want to match a lists of orders\r
- that contains a particular one. You might create matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an\r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
-\r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.FluentMockContext">\r
- <summary>\r
- Tracks the current mock and interception context.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.FluentMockContext.IsActive">\r
- <summary>\r
- Having an active fluent mock context means that the invocation \r
- is being performed in "trial" mode, just to gather the \r
- target method and arguments that need to be matched later \r
- when the actual invocation is made.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for non-mockeable types, and mocks for all other types (interfaces and \r
- non-sealed classes) that can be mocked.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Mocks">\r
- <summary>\r
- Allows querying the universe of mocks for those that behave \r
- according to the LINQ query specification.\r
- </summary>\r
- <devdoc>\r
- This entry-point into Linq to Mocks is the only one in the root Moq \r
- namespace to ease discovery. But to get all the mocking extension \r
- methods on Object, a using of Moq.Linq must be done, so that the \r
- polluting of the intellisense for all objects is an explicit opt-in.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Extension method used to support Linq-like setup properties that are not virtual but do have \r
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.QueryableMockExtensions">\r
- <summary>\r
- Helper extensions that are used by the query translator.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Retrieves a fluent mock from the given setup expression.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.IProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <summary>\r
- Gets an autogenerated interface with a method on it that matches the signature of the specified\r
- <paramref name="delegateType"/>.\r
- </summary>\r
- <remarks>\r
- Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance.\r
- This is how we support delegate mocking. The factory caches such interfaces and reuses them\r
- for repeated requests for the same delegate type.\r
- </remarks>\r
- <param name="delegateType">The delegate type for which an interface is required.</param>\r
- <param name="delegateInterfaceMethod">The method on the autogenerated interface.</param>\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.CreateProxy(System.Type,Moq.Proxy.ICallInterceptor,System.Type[],System.Object[])">\r
- <inheritdoc />\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.Times">\r
- <summary>\r
- Defines the number of invocations allowed by a mocked method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Times.AtLeast(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.\r
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtLeastOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as minimum.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMost(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.\r
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMostOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as maximun.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">\r
- <summary>\r
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and\r
- <paramref name="callCountTo"/> times.\r
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Exactly(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Times.Never">\r
- <summary>\r
- Specifies that a mocked method should not be invoked.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Once">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly one time.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Equals(System.Object)">\r
- <summary>\r
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.\r
- </summary><param name="obj">\r
- The <see cref="T:System.Object"/> to compare with this instance.\r
- </param><returns>\r
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.GetHashCode">\r
- <summary>\r
- Returns a hash code for this instance.\r
- </summary><returns>\r
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- </members>\r
-</doc>\r
+++ /dev/null
-<?xml version="1.0"?>\r
-<doc>\r
- <assembly>\r
- <name>Moq</name>\r
- </assembly>\r
- <members>\r
- <member name="T:Moq.Language.ISetupConditionResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <typeparam name="TResult"></typeparam>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Setups the get.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="expression">The expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.IInterceptStrategy.HandleIntercept(Moq.Proxy.ICallContext,Moq.InterceptorContext,Moq.CurrentInterceptContext)">\r
- <summary>\r
- Handle interception\r
- </summary>\r
- <param name="invocation">the current invocation context</param>\r
- <param name="ctx">shared data for the interceptor as a whole</param>\r
- <param name="localCtx">shared data among the strategies during a single interception</param>\r
- <returns>InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop</returns>\r
- </member>\r
- <member name="T:Moq.IMock`1">\r
- <summary>\r
- Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person>\r
- are possible. Only covers the covariant members of Mock<T>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetNonPublicEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- Searches also in non public events.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetAncestorTypes(System.Type)">\r
- <summary>\r
- Given a type return all of its ancestors, both types and interfaces.\r
- </summary>\r
- <param name="initialType">The type to find immediate ancestors of</param>\r
- </member>\r
- <member name="T:Moq.Language.ICallback">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IHideObjectMembers">\r
- <summary>\r
- Helper interface used to hide the base <see cref="T:System.Object"/> \r
- members from the fluent API to make it much cleaner \r
- in Visual Studio intellisense.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetType">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetHashCode">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.ToString">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean \r
- value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The argument type of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value. \r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring \r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback((string command) => Console.WriteLine(command));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.ICallback`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads for callbacks on\r
- setups that return a value.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- Note that in the case of value-returning methods, after the <c>Callback</c>\r
- call you can still specify the return value.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value.\r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring\r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback(command => Console.WriteLine(command))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IRaise`1">\r
- <summary>\r
- Defines the <c>Raises</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is met.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The event arguments to pass for the raised event.</param>\r
- <example>\r
- The following example shows how to raise an event when \r
- the setup is met:\r
- <code>\r
- var mock = new Mock<IContainer>();\r
- \r
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))\r
- .Raises(add => add.Added += null, EventArgs.Empty);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">\r
- <summary>\r
- Specifies the custom event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="T:Moq.Language.IReturns`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the method call:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value when the method is called:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the method \r
- is executed and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value which is evaluated lazily at the time of the invocation.\r
- <para>\r
- The lookup list can change between invocations and the setup \r
- will return different values accordingly. Also, notice how the specific \r
- string argument is retrieved by simply declaring it as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Returns((string command) => returnValues[command]);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.CallBase">\r
- <summary>\r
- Calls the real method of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real method of the object.</returns>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2) => arg1 + arg2);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Proxy.ProxyMethodHook">\r
- <summary>\r
- Hook used to tells Castle which methods to proxy in mocked classes.\r
- \r
- Here we proxy the default methods Castle suggests (everything Object's methods)\r
- plus Object.ToString(), so we can give mocks useful default names.\r
- \r
- This is required to allow Moq to mock ToString on proxy *class* implementations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.ProxyMethodHook.ShouldInterceptMethod(System.Type,System.Reflection.MethodInfo)">\r
- <summary>\r
- Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString().\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Proxy.InterfaceProxy">\r
- <summary>\r
- <para>The base class used for all our interface-inheriting proxies, which overrides the default\r
- Object.ToString() behavior, to route it via the mock by default, unless overriden by a\r
- real implementation.</para>\r
- \r
- <para>This is required to allow Moq to mock ToString on proxy *interface* implementations.</para>\r
- </summary>\r
- <remarks>\r
- <para><strong>This is internal to Moq and should not be generally used.</strong></para>\r
- \r
- <para>Unfortunately it must be public, due to cross-assembly visibility issues with reflection, \r
- see github.com/Moq/moq4/issues/98 for details.</para>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Proxy.InterfaceProxy.ToString">\r
- <summary>\r
- Overrides the default ToString implementation to instead find the mock for this mock.Object,\r
- and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate\r
- mocks and mock object instances in error messages.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.ReturnsExtensions">\r
- <summary>\r
- Defines async extension methods on IReturns.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ReturnsExtensions.ReturnsAsync``2(Moq.Language.IReturns{``0,System.Threading.Tasks.Task{``1}},``1)">\r
- <summary>\r
- Allows to specify the return value of an asynchronous method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ReturnsExtensions.ThrowsAsync``2(Moq.Language.IReturns{``0,System.Threading.Tasks.Task{``1}},System.Exception)">\r
- <summary>\r
- Allows to specify the exception thrown by an asynchronous method.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ISetupSequentialResult`1">\r
- <summary>\r
- Language for ReturnSequence\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">\r
- <summary>\r
- Returns value\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.CallBase">\r
- <summary>\r
- Calls original method\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">\r
- <summary>\r
- The first method call or member access will be the \r
- last segment of the expression (depth-first traversal), \r
- which is the one we have to Setup rather than FluentMock.\r
- And the last one is the one we have to Mock.Get rather \r
- than FluentMock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Mock">\r
- <summary>\r
- Base class for mocks and static helper class with methods that\r
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to\r
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.#ctor">\r
- <summary>\r
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Get``1(``0)">\r
- <summary>\r
- Retrieves the mock object for the given object instance.\r
- </summary><typeparam name="T">\r
- Type of the mock to retrieve. Can be omitted as it's inferred\r
- from the object instance passed in as the <paramref name="mocked"/> instance.\r
- </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">\r
- The received <paramref name="mocked"/> instance\r
- was not created by Moq.\r
- </exception><example group="advanced">\r
- The following example shows how to add a new setup to an object\r
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather\r
- the object associated with it:\r
- <code>\r
- // Typed instance, not the mock, is retrieved from some test API.\r
- HttpContextBase context = GetMockContext();\r
-\r
- // context.Request is the typed object from the "real" API\r
- // so in order to add a setup to it, we need to get\r
- // the mock that "owns" it\r
- Mock<HttpRequestBase> request = Mock.Get(context.Request);\r
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)\r
- .Returns(tempUrl);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Verify">\r
- <summary>\r
- Verifies that all verifiable expectations have been met.\r
- </summary><example group="verification">\r
- This example sets up an expectation and marks it as verifiable. After\r
- the mock is used, a <c>Verify()</c> call is issued on the mock\r
- to ensure the method in the setup was invoked:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory.\r
- this.Verify();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>\r
- </member>\r
- <member name="M:Moq.Mock.VerifyAll">\r
- <summary>\r
- Verifies all expectations regardless of whether they have\r
- been flagged as verifiable.\r
- </summary><example group="verification">\r
- This example sets up an expectation without marking it as verifiable. After\r
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock\r
- to ensure that all expectations are met:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory, even\r
- // that expectation was not marked as verifiable.\r
- this.VerifyAll();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception> \r
- </member>\r
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">\r
- <summary>\r
- Gets the interceptor target for the given expression and root mock, \r
- building the intermediate hierarchy of mock objects if necessary.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.As``1">\r
- <summary>\r
- Adds an interface implementation to the mock,\r
- allowing setups to be specified for it.\r
- </summary><remarks>\r
- This method can only be called before the first use\r
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which\r
- point the runtime type has already been generated\r
- and no more interfaces can be added to it.\r
- <para>\r
- Also, <typeparamref name="TInterface"/> must be an\r
- interface and not a class, which must be specified\r
- when creating the mock instead.\r
- </para>\r
- </remarks><exception cref="T:System.InvalidOperationException">\r
- The mock type\r
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.\r
- </exception><exception cref="T:System.ArgumentException">\r
- The <typeparamref name="TInterface"/> specified\r
- is not an interface.\r
- </exception><example>\r
- The following example creates a mock for the main interface\r
- and later adds <see cref="T:System.IDisposable"/> to it to verify\r
- it's called by the consumer code:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
-\r
- // add IDisposable interface\r
- var disposable = mock.As<IDisposable>();\r
- disposable.Setup(d => d.Dispose()).Verifiable();\r
- </code>\r
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>\r
- </member>\r
- <member name="P:Moq.Mock.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.Object">\r
- <summary>\r
- Gets the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.MockedType">\r
- <summary>\r
- Retrieves the type of the mocked object, its generic type argument.\r
- This is used in the auto-mocking of hierarchy access.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DelegateInterfaceMethod">\r
- <summary>\r
- If this is a mock of a delegate, this property contains the method\r
- on the autogenerated interface so that we can convert setup + verify\r
- expressions on the delegate into expressions on the interface proxy.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.IsDelegateMock">\r
- <summary>\r
- Allows to check whether expression conversion to the <see cref="P:Moq.Mock.DelegateInterfaceMethod"/> \r
- must be performed on the mock, without causing unnecessarily early initialization of \r
- the mock instance, which breaks As{T}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValueProvider">\r
- <summary>\r
- Specifies the class that will determine the default \r
- value to return when invocations are made that \r
- have no setups and need to return a default \r
- value (for loose mocks).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.ImplementedInterfaces">\r
- <summary>\r
- Exposes the list of extra interfaces implemented by the mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockRepository">\r
- <summary>\r
- Utility repository class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the repository constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This repository class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="repository">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- repository.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the repository \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Loose);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the repository\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the repository\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- repository.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the repository with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = repository.Create<IFoo>(MockBehavior.Loose);\r
- var bar = repository.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- repository.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="T:Moq.MockFactory">\r
- <summary>\r
- Utility factory class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the factory constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This factory class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="factory">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- factory.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the factory \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Loose);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the factory\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the factory\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- factory.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the factory with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- var bar = factory.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the factory with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the factory.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- // use mock on tests\r
- \r
- factory.VerifyAll();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time and with the \r
- the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>("Foo", 25, true);\r
- // use mock on tests\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/>.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/> \r
- and with the the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory, passing \r
- constructor arguments:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Implements creation of a new mock within the factory.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">The behavior for the new mock.</param>\r
- <param name="args">Optional arguments for the construction of the mock.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Verify">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyAll">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">\r
- <summary>\r
- Invokes <paramref name="verifyAction"/> for each mock \r
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting \r
- <see cref="T:Moq.MockVerificationException"/> that might be \r
- thrown from the action.\r
- </summary>\r
- <param name="verifyAction">The action to execute against \r
- each mock.</param>\r
- </member>\r
- <member name="P:Moq.MockFactory.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called \r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for \r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.Mocks">\r
- <summary>\r
- Gets the mocks that have been created by this factory and \r
- that will get verified together.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the repository with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the repository.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="T:Moq.EmptyDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for invocations that do not have setups or return values, with loose mocks.\r
- This is the default behavior for a mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IDefaultValueProvider">\r
- <summary>\r
- Interface to be implemented by classes that determine the\r
- default value of non-expected invocations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">\r
- <summary>\r
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.\r
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">\r
- <summary>\r
- Provides a value for the given member and arguments.\r
- </summary><param name="member">\r
- The member to provide a default value for.\r
- </param>\r
- </member>\r
- <member name="T:Moq.ExpressionStringBuilder">\r
- <summary>\r
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable \r
- string representation for the failure message.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ICallbackResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IThrows">\r
- <summary>\r
- Defines the <c>Throws</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">\r
- <summary>\r
- Specifies the exception to throw when the method is invoked.\r
- </summary>\r
- <param name="exception">Exception instance to throw.</param>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws``1">\r
- <summary>\r
- Specifies the type of exception to throw when the method is invoked.\r
- </summary>\r
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IThrowsResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IOccurrence">\r
- <summary>\r
- Defines occurrence members to constraint setups.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">\r
- <summary>\r
- The expected invocation can happen at most once.\r
- </summary>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMostOnce();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">\r
- <summary>\r
- The expected invocation can happen at most specified number of times.\r
- </summary>\r
- <param name="callCount">The number of times to accept calls.</param>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMost( 5 );\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IVerifies">\r
- <summary>\r
- Defines the <c>Verifiable</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met, and specifies a message for failures.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable("Ping should be executed always!");\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MethodCallReturn">\r
- <devdoc>\r
- We need this non-generics base class so that \r
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from \r
- generic code.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackGetter`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property getter setups.\r
- </summary>\r
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the property is retrieved.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IReturnsGetter`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb for property get setups.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the property getter call:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return for the property.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example>\r
- Return a calculated value when the property is retrieved:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the property \r
- is retrieved and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.CallBase">\r
- <summary>\r
- Calls the real property of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real property of the object.</returns>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockExtensions">\r
- <summary>\r
- Provides additional methods on mocks.\r
- </summary>\r
- <remarks>\r
- Those methods are useful for Testeroids support. \r
- </remarks>\r
- </member>\r
- <member name="M:Moq.MockExtensions.ResetCalls(Moq.Mock)">\r
- <summary>\r
- Resets the calls previously made on the specified mock.\r
- </summary>\r
- <param name="mock">The mock whose calls need to be reset.</param>\r
- </member>\r
- <member name="M:Moq.MockExtensions.Reset(Moq.Mock)">\r
- <summary>\r
- Resets mock state, including setups and any previously made calls.\r
- </summary>\r
- <param name="mock">The mock that needs to be reset.</param>\r
- </member>\r
- <member name="T:Moq.MockSequence">\r
- <summary>\r
- Helper class to setup a full trace between many mocks\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequence.#ctor">\r
- <summary>\r
- Initialize a trace setup\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockSequence.Cyclic">\r
- <summary>\r
- Allow sequence to be repeated\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockSequenceHelper">\r
- <summary>\r
- define nice api\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">\r
- <summary>\r
- Perform an expectation in the trace.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MatcherAttribute">\r
- <summary>\r
- Marks a method as a matcher, which allows complete replacement \r
- of the built-in <see cref="T:Moq.It"/> class with your own argument \r
- matching rules.\r
- </summary>\r
- <remarks>\r
- <b>This feature has been deprecated in favor of the new \r
- and simpler <see cref="T:Moq.Match`1"/>.\r
- </b>\r
- <para>\r
- The argument matching is used to determine whether a concrete \r
- invocation in the mock matches a given setup. This \r
- matching mechanism is fully extensible. \r
- </para>\r
- <para>\r
- There are two parts of a matcher: the compiler matcher \r
- and the runtime matcher.\r
- <list type="bullet">\r
- <item>\r
- <term>Compiler matcher</term>\r
- <description>Used to satisfy the compiler requirements for the \r
- argument. Needs to be a method optionally receiving any arguments \r
- you might need for the matching, but with a return type that \r
- matches that of the argument. \r
- <para>\r
- Let's say I want to match a lists of orders that contains \r
- a particular one. I might create a compiler matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an \r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- Note that the return value from the compiler matcher is irrelevant. \r
- This method will never be called, and is just used to satisfy the \r
- compiler and to signal Moq that this is not a method that we want \r
- to be invoked at runtime.\r
- </description>\r
- </item>\r
- <item>\r
- <term>Runtime matcher</term>\r
- <description>\r
- The runtime matcher is the one that will actually perform evaluation \r
- when the test is run, and is defined by convention to have the \r
- same signature as the compiler matcher, but where the return \r
- value is the first argument to the call, which contains the \r
- object received by the actual invocation at runtime:\r
- <code>\r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- </code>\r
- At runtime, the mocked method will be invoked with a specific \r
- list of orders. This value will be passed to this runtime \r
- matcher as the first argument, while the second argument is the \r
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).\r
- <para>\r
- The boolean returned determines whether the given argument has been \r
- matched. If all arguments to the expected method are matched, then \r
- the setup matches and is evaluated.\r
- </para>\r
- </description>\r
- </item>\r
- </list>\r
- </para>\r
- Using this extensible infrastructure, you can easily replace the entire \r
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the \r
- typical (and annoying) lengthy expressions that result when you have \r
- multiple arguments that use generics.\r
- </remarks>\r
- <example>\r
- The following is the complete example explained above:\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- \r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- }\r
- </code>\r
- And the concrete test using this matcher:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- \r
- // use mock, invoke Save, and have the matcher filter.\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Mock`1">\r
- <summary>\r
- Provides a mock implementation of <typeparamref name="T"/>.\r
- </summary><remarks>\r
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.\r
- <para>\r
- The behavior of the mock with regards to the setups and the actual calls is determined\r
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>\r
- constructor.\r
- </para>\r
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">\r
- The following example shows establishing setups with specific values\r
- for method invocations:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.True(order.IsFilled);\r
- </code>\r
- The following example shows how to use the <see cref="T:Moq.It"/> class\r
- to specify conditions for arguments instead of specific values:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- // shows how to expect a value within a range\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
-\r
- // shows how to throw for unexpected calls.\r
- mock.Setup(x => x.Remove(\r
- It.IsAny<string>(),\r
- It.IsAny<int>()))\r
- .Throws(new InvalidOperationException());\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.False(order.IsFilled);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">\r
- <summary>\r
- Ctor invoked by AsTInterface exclusively.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>();</code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with\r
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only for classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>\r
- </example><param name="behavior">Behavior of the mock.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with\r
- the given constructor arguments for the class.\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only to classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.ToString">\r
- <summary>\r
- Returns the name of the mock\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a void method.\r
- </summary><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a value returning method.\r
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">\r
- <code>\r
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property getter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property getter,\r
- the latest one wins and is the one that will be executed.\r
- </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">\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- <para>\r
- This overloads allows the use of a callback already\r
- typed for the property type.\r
- </para>\r
- </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">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.Stub(v => v.Value);\r
- </code>\r
- After the <c>Stub</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
-\r
- v.Value = 5;\r
- Assert.Equal(5, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. This overload\r
- allows setting the initial value for the property. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.SetupProperty(v => v.Value, 5);\r
- </code>\r
- After the <c>SetupProperty</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
- // Initial value was stored\r
- Assert.Equal(5, v.Value);\r
-\r
- // New value set which changes the initial value\r
- v.Value = 6;\r
- Assert.Equal(6, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupAllProperties">\r
- <summary>\r
- Specifies that the all properties on the mock should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing"). The default value for each property will be the\r
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.\r
- </summary><remarks>\r
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,\r
- the mocked default values will also get all properties setup recursively.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given invocation\r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true);\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> argument is\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));\r
- </code>\r
- </example><example>\r
- This example shows how to invoke an event with a custom event arguments\r
- class in a view that will cause its corresponding presenter to\r
- react by changing its state:\r
- <code>\r
- var mockView = new Mock<IOrdersView>();\r
- var presenter = new OrdersPresenter(mockView.Object);\r
-\r
- // Check that the presenter has no selection by default\r
- Assert.Null(presenter.SelectedOrder);\r
-\r
- // Raise the event with a specific arguments data\r
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });\r
-\r
- // Now the presenter reacted to the event, and we have a selected order\r
- Assert.NotNull(presenter.SelectedOrder);\r
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument for a non-EventHandler typed event.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> arguments are\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a custom event that does not adhere to \r
- the standard <c>EventHandler</c>:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="P:Moq.Mock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.Name">\r
- <summary>\r
- Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.DelegateInterfaceMethod">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.MockLegacyExtensions">\r
- <summary>\r
- Provides legacy API members as extensions so that \r
- existing code continues to compile, but new code \r
- doesn't see then.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.ObsoleteMockExtensions">\r
- <summary>\r
- Provides additional methods on mocks.\r
- </summary>\r
- <devdoc>\r
- Provided as extension methods as they confuse the compiler \r
- with the overloads taking Action.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to \r
- to a property setter, regardless of its value.\r
- </summary>\r
- <remarks>\r
- If more than one setup is set for the same property setter, \r
- the latest one wins and is the one that will be executed.\r
- </remarks>\r
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>\r
- <typeparam name="T">Type of the mock.</typeparam>\r
- <param name="mock">The target mock for the setup.</param>\r
- <param name="expression">Lambda expression that specifies the property setter.</param>\r
- <example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended);\r
- </code>\r
- </example>\r
- <devdoc>\r
- This method is not legacy, but must be on an extension method to avoid \r
- confusing the compiler with the new Action syntax.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Verifies that a property has been set on the mock, regarless of its value.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times, and specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="T:Moq.SequenceExtensions">\r
- <summary>\r
- Helper for sequencing return values in the same method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Return a sequence of values, once per call.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Casts the expression to a lambda expression, removing \r
- a cast if there's any.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.\r
- </summary>\r
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Creates an expression that casts the given expression to the <typeparamref name="T"/> \r
- type.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">\r
- <devdoc>\r
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 \r
- is fixed.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.GetCallInfo(System.Linq.Expressions.LambdaExpression,Moq.Mock)">\r
- <summary>\r
- Extracts, into a common form, information from a <see cref="T:System.Linq.Expressions.LambdaExpression"/>\r
- around either a <see cref="T:System.Linq.Expressions.MethodCallExpression"/> (for a normal method call)\r
- or a <see cref="T:System.Linq.Expressions.InvocationExpression"/> (for a delegate invocation).\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Extensions.IsDelegate(System.Type)">\r
- <summary>\r
- Tests if a type is a delegate type (subclasses <see cref="T:System.Delegate"/>).\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Evaluator">\r
- <summary>\r
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.\r
- </summary>\r
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>\r
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <param name="fnCanBeEvaluated">A function that decides whether a given expression\r
- node can be part of the local function.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="T:Moq.Evaluator.SubtreeEvaluator">\r
- <summary>\r
- Evaluates and replaces sub-trees when first candidate is reached (top-down)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Evaluator.Nominator">\r
- <summary>\r
- Performs bottom-up analysis to determine which nodes can possibly\r
- be part of an evaluated sub-tree.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">\r
- <summary>\r
- Ensures the given <paramref name="value"/> is not null.\r
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">\r
- <summary>\r
- Ensures the given string <paramref name="value"/> is not null or empty.\r
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or \r
- <see cref="T:System.ArgumentException"/> in the latter.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range including the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range excluding the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="T:Moq.IMocked`1">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IMocked">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked`1.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Interceptor">\r
- <summary>\r
- Implements the actual interception and method invocation for \r
- all mocks.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupSetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackSetter`1">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property setter setups.\r
- </summary>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">\r
- <summary>\r
- Specifies a callback to invoke when the property is set that receives the \r
- property value being set.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupSet(x => x.Suspended)\r
- .Callback((bool state) => Console.WriteLine(state));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.It">\r
- <summary>\r
- Allows the specification of a matching condition for an\r
- argument in a method invocation, rather than a specific\r
- argument value. "It" refers to the argument being matched.\r
- </summary><remarks>\r
- This class allows the setup to match a method invocation\r
- with an arbitrary value, with a value in a specified range, or\r
- even one that matches a given predicate.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.It.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary><remarks>\r
- Typically used when the actual argument value for a method\r
- call is not relevant.\r
- </remarks><example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());\r
- </code>\r
- </example><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.IsNotNull``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type, except null.\r
- </summary><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>\r
- Allows the specification of a predicate to perform matching\r
- of method call arguments.\r
- </remarks><example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the\r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the\r
- method is a negative number:\r
- <code>\r
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </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">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(``0[])">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with a value of 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value not found from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(``0[])">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument of any value except 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </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>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">\r
- <summary>\r
- Matcher to treat static functions as matchers.\r
- \r
- mock.Setup(x => x.StringMethod(A.MagicString()));\r
- \r
- public static class A \r
- {\r
- [Matcher]\r
- public static string MagicString() { return null; }\r
- public static bool MagicString(string arg)\r
- {\r
- return arg == "magic";\r
- }\r
- }\r
- \r
- Will succeed if: mock.Object.StringMethod("magic");\r
- and fail with any other call.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockBehavior">\r
- <summary>\r
- Options to customize the behavior of the mock. \r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Strict">\r
- <summary>\r
- Causes the mock to always throw \r
- an exception for invocations that don't have a \r
- corresponding setup.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Loose">\r
- <summary>\r
- Will never throw exceptions, returning default \r
- values when necessary (null for reference types, \r
- zero for value types or empty enumerables and arrays).\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Default">\r
- <summary>\r
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException">\r
- <summary>\r
- Exception thrown by mocks when setups are not matched, \r
- the mock is not properly setup, etc.\r
- </summary>\r
- <remarks>\r
- A distinct exception type is provided so that exceptions \r
- thrown by the mock can be differentiated in tests that \r
- expect other exceptions to be thrown (i.e. ArgumentException).\r
- <para>\r
- Richer exception hierarchy/types are not provided as \r
- tests typically should <b>not</b> catch or expect exceptions \r
- from the mocks. These are typically the result of changes \r
- in the tested class or its collaborators implementation, and \r
- result in fixes in the mock setup so that they dissapear and \r
- allow the test to pass.\r
- </para>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.MockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- <param name="info">Serialization information.</param>\r
- <param name="context">Streaming context.</param>\r
- </member>\r
- <member name="M:Moq.MockException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- <param name="info">Serialization information.</param>\r
- <param name="context">Streaming context.</param>\r
- </member>\r
- <member name="P:Moq.MockException.IsVerificationError">\r
- <summary>\r
- Indicates whether this exception is a verification fault raised by Verify()\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException.ExceptionReason">\r
- <summary>\r
- Made internal as it's of no use for \r
- consumers, but it's important for \r
- our own tests.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockVerificationException">\r
- <devdoc>\r
- Used by the mock factory to accumulate verification \r
- failures.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.MockVerificationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">\r
- <summary>\r
- Supports the serialization infrastructure.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Properties.Resources">\r
- <summary>\r
- A strongly-typed resource class, for looking up localized strings, etc.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ResourceManager">\r
- <summary>\r
- Returns the cached ResourceManager instance used by this class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.Culture">\r
- <summary>\r
- Overrides the current thread's CurrentUICulture property for all\r
- resource lookups using this strongly typed resource class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">\r
- <summary>\r
- Looks up a localized string similar to Value cannot be an empty string..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">\r
- <summary>\r
- Looks up a localized string similar to Can only add interfaces to the mock..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">\r
- <summary>\r
- Looks up a localized string similar to Can't set return value for void method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForDelegate">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">\r
- <summary>\r
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.EventNofFound">\r
- <summary>\r
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">\r
- <summary>\r
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockClass">\r
- <summary>\r
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">\r
- <summary>\r
- 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.\r
- Please cast the argument to one of the supported types: {1}.\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">\r
- <summary>\r
- Looks up a localized string similar to LINQ method '{0}' not supported..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MemberMissing">\r
- <summary>\r
- Looks up a localized string similar to Member {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MethodIsPublic">\r
- <summary>\r
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:\r
- mock.Setup(x => x.{1}());\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">\r
- <summary>\r
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.\r
- {2}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">\r
- <summary>\r
- Looks up a localized string similar to Expected only {0} calls to {1}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">\r
- <summary>\r
- Looks up a localized string similar to Expected only one call to {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least once, but was never performed: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoSetup">\r
- <summary>\r
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">\r
- <summary>\r
- Looks up a localized string similar to Object instance was not created by Moq..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Out expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a getter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyMissing">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is write-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is read-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a setter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Ref expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">\r
- <summary>\r
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupLambda">\r
- <summary>\r
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNever">\r
- <summary>\r
- Looks up a localized string similar to Invocation {0} should not have been made..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a method invocation: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotProperty">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property access: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotSetter">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property setter invocation..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not implement required interface {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not from required type {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">\r
- <summary>\r
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:\r
- mock.Setup(x => x.{1}).Returns(value);\r
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one\r
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">\r
- <summary>\r
- Looks up a localized string similar to Unsupported expression: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">\r
- <summary>\r
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">\r
- <summary>\r
- 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}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMember">\r
- <summary>\r
- Looks up a localized string similar to Member {0} is not supported for protected mocking..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression can only use static custom matchers..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerficationFailed">\r
- <summary>\r
- Looks up a localized string similar to The following setups were not matched:\r
- {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Protected.IProtectedMock`1">\r
- <summary>\r
- Allows setups to be specified for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for a void method invocation with the given \r
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="voidMethodName">The name of the void method to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for an invocation on a property or a non void method with the given \r
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TResult">The return type of the method or property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">\r
- <summary>\r
- Specifies a setup for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="value">The property value. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for a void method with the given <paramref name="methodName"/>,\r
- optionally specifying arguments for the method call. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the void method to be verified.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for an invocation on a property or a non void method with the given \r
- <paramref name="methodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TResult">The type of return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">\r
- <summary>\r
- Specifies a verify for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="value">The property value.</param>\r
- <typeparam name="TProperty">The type of the property. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>\r
- </member>\r
- <member name="T:Moq.Protected.ItExpr">\r
- <summary>\r
- Allows the specification of a matching condition for an \r
- argument in a protected member setup, rather than a specific \r
- argument value. "ItExpr" refers to the argument being matched.\r
- </summary>\r
- <remarks>\r
- <para>Use this variant of argument matching instead of \r
- <see cref="T:Moq.It"/> for protected setups.</para>\r
- This class allows the setup to match a method invocation \r
- with an arbitrary value, with a value in a specified range, or \r
- even one that matches a given predicate, or null.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsNull``1">\r
- <summary>\r
- Matches a null value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Required for protected mocks as the null value cannot be used \r
- directly as it prevents proper method overload selection.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with a null string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsNull<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Typically used when the actual argument value for a method \r
- call is not relevant.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsAny<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="match">The predicate used to match the method argument.</param>\r
- <remarks>\r
- Allows the specification of a predicate to perform matching \r
- of method call arguments.\r
- </remarks>\r
- <example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the \r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Protected()\r
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the \r
- method is a negative number:\r
- <code>\r
- mock.Protected()\r
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="from">The lower bound of the range.</param>\r
- <param name="to">The upper bound of the range.</param>\r
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>\r
- <example>\r
- The following example shows how to expect a method call \r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Protected()\r
- .Setup("HasInventory",\r
- ItExpr.IsAny<string>(),\r
- ItExpr.IsInRange(0, 100, Range.Inclusive))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <param name="options">The options used to interpret the pattern.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Protected.ProtectedExtension">\r
- <summary>\r
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>, \r
- allowing setups to be set for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">\r
- <summary>\r
- Enable protected setups for the mock.\r
- </summary>\r
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>\r
- <param name="mock">The mock to set the protected setups on.</param>\r
- </member>\r
- <member name="T:ThisAssembly">\r
- <group name="overview" title="Overview" order="0" />\r
- <group name="setups" title="Specifying setups" order="1" />\r
- <group name="returns" title="Returning values from members" order="2" />\r
- <group name="verification" title="Verifying setups" order="3" />\r
- <group name="advanced" title="Advanced scenarios" order="99" />\r
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />\r
- </member>\r
- <member name="T:Moq.Range">\r
- <summary>\r
- Kind of range to use in a filter specified through \r
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Inclusive">\r
- <summary>\r
- The range includes the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Exclusive">\r
- <summary>\r
- The range does not include the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.DefaultValue">\r
- <summary>\r
- Determines the way default values are generated \r
- calculated for loose mocks.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Empty">\r
- <summary>\r
- Default behavior, which generates empty values for \r
- value types (i.e. default(int)), empty array and \r
- enumerables, and nulls for all other reference types.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Mock">\r
- <summary>\r
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/> \r
- is null, replaces this value with a mock (if the type \r
- can be mocked). \r
- </summary>\r
- <remarks>\r
- For sealed classes, a null value will be generated.\r
- </remarks>\r
- </member>\r
- <member name="T:Moq.Linq.MockQueryable`1">\r
- <summary>\r
- A default implementation of IQueryable for use with QueryProvider\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">\r
- <summary>\r
- The <paramref name="underlyingCreateMocks"/> is a \r
- static method that returns an IQueryable of Mocks of T which is used to \r
- apply the linq specification to.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Match">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><remarks>\r
- See also <see cref="T:Moq.Match`1"/>.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Matcher``1">\r
- <devdoc>\r
- Provided for the sole purpose of rendering the delegate passed to the \r
- matcher constructor if no friendly render lambda is provided.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">\r
- <summary>\r
- Initializes the match with the condition that\r
- will be checked in order to match invocation\r
- values.\r
- </summary><param name="condition">The condition to match against actual values.</param><remarks>\r
- <seealso cref="T:Moq.Match`1"/>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">\r
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>\r
- </member>\r
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">\r
- <devdoc>\r
- This method is used to set an expression as the last matcher invoked, \r
- which is used in the SetupSet to allow matchers in the prop = value \r
- delegate expression. This delegate is executed in "fluent" mode in \r
- order to capture the value being set, and construct the corresponding \r
- methodcall.\r
- This is also used in the MatcherFactory for each argument expression.\r
- This method ensures that when we execute the delegate, we \r
- also track the matcher that was invoked, so that when we create the \r
- methodcall we build the expression using it, rather than the null/default \r
- value returned from the actual invocation.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.Match`1">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>\r
- The argument matching is used to determine whether a concrete\r
- invocation in the mock matches a given setup. This\r
- matching mechanism is fully extensible.\r
- </remarks><example>\r
- Creating a custom matcher is straightforward. You just need to create a method\r
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with \r
- your matching condition and optional friendly render expression:\r
- <code>\r
- [Matcher]\r
- public Order IsBigOrder()\r
- {\r
- return Match<Order>.Create(\r
- o => o.GrandTotal >= 5000, \r
- /* a friendly expression to render on failures */\r
- () => IsBigOrder());\r
- }\r
- </code>\r
- This method can be used in any mock setup invocation:\r
- <code>\r
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();\r
- </code>\r
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be \r
- annotated with the [Matcher] attribute in order to determine this) and\r
- evaluates your predicate with the actual value passed into your predicate.\r
- <para>\r
- Another example might be a case where you want to match a lists of orders\r
- that contains a particular one. You might create matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an\r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
-\r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.FluentMockContext">\r
- <summary>\r
- Tracks the current mock and interception context.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.FluentMockContext.IsActive">\r
- <summary>\r
- Having an active fluent mock context means that the invocation \r
- is being performed in "trial" mode, just to gather the \r
- target method and arguments that need to be matched later \r
- when the actual invocation is made.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for non-mockeable types, and mocks for all other types (interfaces and \r
- non-sealed classes) that can be mocked.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Mocks">\r
- <summary>\r
- Allows querying the universe of mocks for those that behave \r
- according to the LINQ query specification.\r
- </summary>\r
- <devdoc>\r
- This entry-point into Linq to Mocks is the only one in the root Moq \r
- namespace to ease discovery. But to get all the mocking extension \r
- methods on Object, a using of Moq.Linq must be done, so that the \r
- polluting of the intellisense for all objects is an explicit opt-in.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Extension method used to support Linq-like setup properties that are not virtual but do have \r
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.QueryableMockExtensions">\r
- <summary>\r
- Helper extensions that are used by the query translator.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Retrieves a fluent mock from the given setup expression.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.IProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <summary>\r
- Gets an autogenerated interface with a method on it that matches the signature of the specified\r
- <paramref name="delegateType"/>.\r
- </summary>\r
- <remarks>\r
- Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance.\r
- This is how we support delegate mocking. The factory caches such interfaces and reuses them\r
- for repeated requests for the same delegate type.\r
- </remarks>\r
- <param name="delegateType">The delegate type for which an interface is required.</param>\r
- <param name="delegateInterfaceMethod">The method on the autogenerated interface.</param>\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.CreateProxy(System.Type,Moq.Proxy.ICallInterceptor,System.Type[],System.Object[])">\r
- <inheritdoc />\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.Times">\r
- <summary>\r
- Defines the number of invocations allowed by a mocked method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Times.AtLeast(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.\r
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtLeastOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as minimum.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMost(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.\r
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMostOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as maximun.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">\r
- <summary>\r
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and\r
- <paramref name="callCountTo"/> times.\r
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Exactly(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Times.Never">\r
- <summary>\r
- Specifies that a mocked method should not be invoked.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Once">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly one time.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Equals(System.Object)">\r
- <summary>\r
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.\r
- </summary><param name="obj">\r
- The <see cref="T:System.Object"/> to compare with this instance.\r
- </param><returns>\r
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.GetHashCode">\r
- <summary>\r
- Returns a hash code for this instance.\r
- </summary><returns>\r
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- </members>\r
-</doc>\r
+++ /dev/null
-<?xml version="1.0"?>\r
-<doc>\r
- <assembly>\r
- <name>Moq.Silverlight</name>\r
- </assembly>\r
- <members>\r
- <member name="T:Moq.Mock`1">\r
- <summary>\r
- Provides a mock implementation of <typeparamref name="T"/>.\r
- </summary><remarks>\r
- Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.\r
- <para>\r
- The behavior of the mock with regards to the setups and the actual calls is determined\r
- by the optional <see cref="T:Moq.MockBehavior"/> that can be passed to the <see cref="M:Moq.Mock`1.#ctor(Moq.MockBehavior)"/>\r
- constructor.\r
- </para>\r
- </remarks><typeparam name="T">Type to mock, which can be an interface or a class.</typeparam><example group="overview" order="0">\r
- The following example shows establishing setups with specific values\r
- for method invocations:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.True(order.IsFilled);\r
- </code>\r
- The following example shows how to use the <see cref="T:Moq.It"/> class\r
- to specify conditions for arguments instead of specific values:\r
- <code>\r
- // Arrange\r
- var order = new Order(TALISKER, 50);\r
- var mock = new Mock<IWarehouse>();\r
-\r
- // shows how to expect a value within a range\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
-\r
- // shows how to throw for unexpected calls.\r
- mock.Setup(x => x.Remove(\r
- It.IsAny<string>(),\r
- It.IsAny<int>()))\r
- .Throws(new InvalidOperationException());\r
-\r
- // Act\r
- order.Fill(mock.Object);\r
-\r
- // Assert\r
- Assert.False(order.IsFilled);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Mock">\r
- <summary>\r
- Base class for mocks and static helper class with methods that\r
- apply to mocked objects, such as <see cref="M:Moq.Mock.Get``1(``0)"/> to\r
- retrieve a <see cref="T:Moq.Mock`1"/> from an object instance.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IHideObjectMembers">\r
- <summary>\r
- Helper interface used to hide the base <see cref="T:System.Object"/> \r
- members from the fluent API to make it much cleaner \r
- in Visual Studio intellisense.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetType">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.GetHashCode">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.ToString">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.IHideObjectMembers.Equals(System.Object)">\r
- <summary/>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="predicate">The predicate with the specification of how the mocked object should behave.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mock.#ctor">\r
- <summary>\r
- Initializes a new instance of the <see cref="T:Moq.Mock"/> class.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Get``1(``0)">\r
- <summary>\r
- Retrieves the mock object for the given object instance.\r
- </summary><typeparam name="T">\r
- Type of the mock to retrieve. Can be omitted as it's inferred\r
- from the object instance passed in as the <paramref name="mocked"/> instance.\r
- </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">\r
- The received <paramref name="mocked"/> instance\r
- was not created by Moq.\r
- </exception><example group="advanced">\r
- The following example shows how to add a new setup to an object\r
- instance which is not the original <see cref="T:Moq.Mock`1"/> but rather\r
- the object associated with it:\r
- <code>\r
- // Typed instance, not the mock, is retrieved from some test API.\r
- HttpContextBase context = GetMockContext();\r
-\r
- // context.Request is the typed object from the "real" API\r
- // so in order to add a setup to it, we need to get\r
- // the mock that "owns" it\r
- Mock<HttpRequestBase> request = Mock.Get(context.Request);\r
- mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)\r
- .Returns(tempUrl);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.Verify">\r
- <summary>\r
- Verifies that all verifiable expectations have been met.\r
- </summary><example group="verification">\r
- This example sets up an expectation and marks it as verifiable. After\r
- the mock is used, a <c>Verify()</c> call is issued on the mock\r
- to ensure the method in the setup was invoked:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory.\r
- this.Verify();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">Not all verifiable expectations were met.</exception>\r
- </member>\r
- <member name="M:Moq.Mock.VerifyAll">\r
- <summary>\r
- Verifies all expectations regardless of whether they have\r
- been flagged as verifiable.\r
- </summary><example group="verification">\r
- This example sets up an expectation without marking it as verifiable. After\r
- the mock is used, a <see cref="M:Moq.Mock.VerifyAll"/> call is issued on the mock\r
- to ensure that all expectations are met:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);\r
- ...\r
- // other test code\r
- ...\r
- // Will throw if the test code has didn't call HasInventory, even\r
- // that expectation was not marked as verifiable.\r
- this.VerifyAll();\r
- </code>\r
- </example><exception cref="T:Moq.MockException">At least one expectation was not met.</exception> \r
- </member>\r
- <member name="M:Moq.Mock.GetInterceptor(System.Linq.Expressions.Expression,Moq.Mock)">\r
- <summary>\r
- Gets the interceptor target for the given expression and root mock, \r
- building the intermediate hierarchy of mock objects if necessary.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.EventArgs)">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.DoRaise(System.Reflection.EventInfo,System.Object[])">\r
- <summary>\r
- Raises the associated event with the given \r
- event argument data.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock.As``1">\r
- <summary>\r
- Adds an interface implementation to the mock,\r
- allowing setups to be specified for it.\r
- </summary><remarks>\r
- This method can only be called before the first use\r
- of the mock <see cref="P:Moq.Mock.Object"/> property, at which\r
- point the runtime type has already been generated\r
- and no more interfaces can be added to it.\r
- <para>\r
- Also, <typeparamref name="TInterface"/> must be an\r
- interface and not a class, which must be specified\r
- when creating the mock instead.\r
- </para>\r
- </remarks><exception cref="T:System.InvalidOperationException">\r
- The mock type\r
- has already been generated by accessing the <see cref="P:Moq.Mock.Object"/> property.\r
- </exception><exception cref="T:System.ArgumentException">\r
- The <typeparamref name="TInterface"/> specified\r
- is not an interface.\r
- </exception><example>\r
- The following example creates a mock for the main interface\r
- and later adds <see cref="T:System.IDisposable"/> to it to verify\r
- it's called by the consumer code:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
-\r
- // add IDisposable interface\r
- var disposable = mock.As<IDisposable>();\r
- disposable.Setup(d => d.Dispose()).Verifiable();\r
- </code>\r
- </example><typeparam name="TInterface">Type of interface to cast the mock to.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mock.SetReturnsDefault``1(``0)">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock.SetReturnDefault{TReturn}"]/*"/>\r
- </member>\r
- <member name="P:Moq.Mock.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.Object">\r
- <summary>\r
- Gets the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.MockedType">\r
- <summary>\r
- Retrieves the type of the mocked object, its generic type argument.\r
- This is used in the auto-mocking of hierarchy access.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DelegateInterfaceMethod">\r
- <summary>\r
- If this is a mock of a delegate, this property contains the method\r
- on the autogenerated interface so that we can convert setup + verify\r
- expressions on the delegate into expressions on the interface proxy.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.IsDelegateMock">\r
- <summary>\r
- Allows to check whether expression conversion to the <see cref="P:Moq.Mock.DelegateInterfaceMethod"/> \r
- must be performed on the mock, without causing unnecessarily early initialization of \r
- the mock instance, which breaks As{T}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.DefaultValueProvider">\r
- <summary>\r
- Specifies the class that will determine the default \r
- value to return when invocations are made that \r
- have no setups and need to return a default \r
- value (for loose mocks).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock.ImplementedInterfaces">\r
- <summary>\r
- Exposes the list of extra interfaces implemented by the mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IMock`1">\r
- <summary>\r
- Covarient interface for Mock<T> such that casts between IMock<Employee> to IMock<Person>\r
- are possible. Only covers the covariant members of Mock<T>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.Behavior">\r
- <summary>\r
- Behavior of the mock, according to the value set in the constructor.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called\r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMock`1.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for\r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Boolean)">\r
- <summary>\r
- Ctor invoked by AsTInterface exclusively.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>();</code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with <see cref="F:Moq.MockBehavior.Default">default behavior</see> and with\r
- the given constructor arguments for the class. (Only valid when <typeparamref name="T"/> is a class)\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only for classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes an instance of the mock with the specified <see cref="T:Moq.MockBehavior">behavior</see>.\r
- </summary><example>\r
- <code>var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);</code>\r
- </example><param name="behavior">Behavior of the mock.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.#ctor(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Initializes an instance of the mock with a specific <see cref="T:Moq.MockBehavior">behavior</see> with\r
- the given constructor arguments for the class.\r
- </summary><remarks>\r
- The mock will try to find the best match constructor given the constructor arguments, and invoke that\r
- to initialize the instance. This applies only to classes, not interfaces.\r
- </remarks><example>\r
- <code>var mock = new Mock<MyProvider>(someArgument, 25);</code>\r
- </example><param name="behavior">Behavior of the mock.</param><param name="args">Optional constructor arguments if the mocked type is a class.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.ToString">\r
- <summary>\r
- Returns the name of the mock\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.OnGetObject">\r
- <summary>\r
- Returns the mocked object value.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a void method.\r
- </summary><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the expected method invocation.</param><example group="setups">\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- mock.Setup(x => x.Execute("ping"));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a value returning method.\r
- </summary><typeparam name="TResult">Type of the return value. Typically omitted as it can be inferred from the expression.</typeparam><remarks>\r
- If more than one setup is specified for the same method or property,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="expression">Lambda expression that specifies the method invocation.</param><example group="setups">\r
- <code>\r
- mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property getter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property getter,\r
- the latest one wins and is the one that will be executed.\r
- </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">\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- <para>\r
- This overloads allows the use of a callback already\r
- typed for the property type.\r
- </para>\r
- </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">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to\r
- to a property setter.\r
- </summary><remarks>\r
- If more than one setup is set for the same property setter,\r
- the latest one wins and is the one that will be executed.\r
- </remarks><param name="setterExpression">Lambda expression that sets a property to a value.</param><example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.Stub(v => v.Value);\r
- </code>\r
- After the <c>Stub</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
-\r
- v.Value = 5;\r
- Assert.Equal(5, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupProperty``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Specifies that the given property should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. This overload\r
- allows setting the initial value for the property. (this is also\r
- known as "stubbing").\r
- </summary><typeparam name="TProperty">\r
- Type of the property, inferred from the property\r
- expression (does not need to be specified).\r
- </typeparam><param name="property">Property expression to stub.</param><param name="initialValue">Initial value for the property.</param><example>\r
- If you have an interface with an int property <c>Value</c>, you might\r
- stub it using the following straightforward call:\r
- <code>\r
- var mock = new Mock<IHaveValue>();\r
- mock.SetupProperty(v => v.Value, 5);\r
- </code>\r
- After the <c>SetupProperty</c> call has been issued, setting and\r
- retrieving the object value will behave as expected:\r
- <code>\r
- IHaveValue v = mock.Object;\r
- // Initial value was stored\r
- Assert.Equal(5, v.Value);\r
-\r
- // New value set which changes the initial value\r
- v.Value = 6;\r
- Assert.Equal(6, v.Value);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.SetupAllProperties">\r
- <summary>\r
- Specifies that the all properties on the mock should have "property behavior",\r
- meaning that setting its value will cause it to be saved and\r
- later returned when the property is requested. (this is also\r
- known as "stubbing"). The default value for each property will be the\r
- one generated as specified by the <see cref="P:Moq.Mock.DefaultValue"/> property for the mock.\r
- </summary><remarks>\r
- If the mock <see cref="P:Moq.Mock.DefaultValue"/> is set to <see cref="F:Moq.DefaultValue.Mock"/>,\r
- the mocked default values will also get all properties setup recursively.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Mock`1.When(System.Func{System.Boolean})">\r
- <!-- No matching elements were found for the following include tag --><include file="Mock.Generic.xdoc" path="docs/doc[@for="Mock{T}.When"]/*"/>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="expression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="expression">Expression to verify.</param><param name="times">The number of times a method is allowed to be called.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IProcessor>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call Execute with a "ping" string argument.\r
- mock.Verify(proc => proc.Execute("ping"));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify(System.Linq.Expressions.Expression{System.Action{`0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock,\r
- specifying a failure error message. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a specific invocation matching the given expression was performed on the mock. Use\r
- in conjuntion with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used, and later we want to verify that a given\r
- invocation with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock. Use in conjuntion\r
- with the default <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given invocation\r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't call HasInventory.\r
- mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Verify``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a specific invocation matching the given\r
- expression was performed on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times)">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was read on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was retrieved from it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't retrieve the IsClosed property.\r
- mock.VerifyGet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifyGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was read on the mock, specifying a failure\r
- error message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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">\r
- Type of the property to verify. Typically omitted as it can\r
- be inferred from the expression's return type.\r
- </typeparam>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true);\r
- </code>\r
- </example><exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times)">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times})">\r
- <summary>\r
- Verifies that a property was set on the mock.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </exception><param name="times">The number of times a method is allowed to be called.</param><param name="setterExpression">Expression to verify.</param>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><example group="verification">\r
- This example assumes that the mock has been used,\r
- and later we want to verify that a given property\r
- was set on it:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");\r
- </code>\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.VerifySet(System.Action{`0},System.Func{Moq.Times},System.String)">\r
- <summary>\r
- Verifies that a property was set on the mock, specifying\r
- a failure message.\r
- </summary><exception cref="T:Moq.MockException">\r
- The invocation was not call the times specified by\r
- <paramref name="times"/>.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> argument is\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a <see cref="E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged"/> event:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));\r
- </code>\r
- </example><example>\r
- This example shows how to invoke an event with a custom event arguments\r
- class in a view that will cause its corresponding presenter to\r
- react by changing its state:\r
- <code>\r
- var mockView = new Mock<IOrdersView>();\r
- var presenter = new OrdersPresenter(mockView.Object);\r
-\r
- // Check that the presenter has no selection by default\r
- Assert.Null(presenter.SelectedOrder);\r
-\r
- // Raise the event with a specific arguments data\r
- mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });\r
-\r
- // Now the presenter reacted to the event, and we have a selected order\r
- Assert.NotNull(presenter.SelectedOrder);\r
- Assert.Equal("moq", presenter.SelectedOrder.ProductName);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Raise(System.Action{`0},System.Object[])">\r
- <summary>\r
- Raises the event referenced in <paramref name="eventExpression"/> using\r
- the given <paramref name="args"/> argument for a non-EventHandler typed event.\r
- </summary><exception cref="T:System.ArgumentException">\r
- The <paramref name="args"/> arguments are\r
- invalid for the target event invocation, or the <paramref name="eventExpression"/> is\r
- not an event attach or detach expression.\r
- </exception><example>\r
- The following example shows how to raise a custom event that does not adhere to \r
- the standard <c>EventHandler</c>:\r
- <code>\r
- var mock = new Mock<IViewModel>();\r
-\r
- mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.Expect``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mock`1.ExpectSet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},``0)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.Object">\r
- <summary>\r
- Exposes the mocked object instance.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.Name">\r
- <summary>\r
- Allows naming of your mocks, so they can be easily identified in error messages (e.g. from failed assertions).\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Mock`1.DelegateInterfaceMethod">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.Language.ISetupConditionResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup(System.Linq.Expressions.Expression{System.Action{`0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.Setup``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- The expectation will be considered only in the former condition.\r
- </summary>\r
- <typeparam name="TResult"></typeparam>\r
- <param name="expression"></param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})">\r
- <summary>\r
- Setups the get.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="expression">The expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet``1(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="M:Moq.Language.ISetupConditionResult`1.SetupSet(System.Action{`0})">\r
- <summary>\r
- Setups the set.\r
- </summary>\r
- <param name="setterExpression">The setter expression.</param>\r
- <returns></returns>\r
- </member>\r
- <member name="T:Moq.DefaultValue">\r
- <summary>\r
- Determines the way default values are generated \r
- calculated for loose mocks.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Empty">\r
- <summary>\r
- Default behavior, which generates empty values for \r
- value types (i.e. default(int)), empty array and \r
- enumerables, and nulls for all other reference types.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.DefaultValue.Mock">\r
- <summary>\r
- Whenever the default value generated by <see cref="F:Moq.DefaultValue.Empty"/> \r
- is null, replaces this value with a mock (if the type \r
- can be mocked). \r
- </summary>\r
- <remarks>\r
- For sealed classes, a null value will be generated.\r
- </remarks>\r
- </member>\r
- <member name="T:Moq.EmptyDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for invocations that do not have setups or return values, with loose mocks.\r
- This is the default behavior for a mock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IDefaultValueProvider">\r
- <summary>\r
- Interface to be implemented by classes that determine the\r
- default value of non-expected invocations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.DefineDefault``1(``0)">\r
- <summary>\r
- Defines the default value to return in all the methods returning <typeparamref name="T"/>.\r
- </summary><typeparam name="T">The type of the return value.</typeparam><param name="value">The value to set as default.</param>\r
- </member>\r
- <member name="M:Moq.IDefaultValueProvider.ProvideDefault(System.Reflection.MethodInfo)">\r
- <summary>\r
- Provides a value for the given member and arguments.\r
- </summary><param name="member">\r
- The member to provide a default value for.\r
- </param>\r
- </member>\r
- <member name="T:Moq.Evaluator">\r
- <summary>\r
- Provides partial evaluation of subtrees, whenever they can be evaluated locally.\r
- </summary>\r
- <author>Matt Warren: http://blogs.msdn.com/mattwar</author>\r
- <contributor>Documented by InSTEDD: http://www.instedd.org</contributor>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression,System.Func{System.Linq.Expressions.Expression,System.Boolean})">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <param name="fnCanBeEvaluated">A function that decides whether a given expression\r
- node can be part of the local function.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="M:Moq.Evaluator.PartialEval(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Performs evaluation and replacement of independent sub-trees\r
- </summary>\r
- <param name="expression">The root of the expression tree.</param>\r
- <returns>A new tree with sub-trees evaluated and replaced.</returns>\r
- </member>\r
- <member name="T:Moq.Evaluator.SubtreeEvaluator">\r
- <summary>\r
- Evaluates and replaces sub-trees when first candidate is reached (top-down)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Evaluator.Nominator">\r
- <summary>\r
- Performs bottom-up analysis to determine which nodes can possibly\r
- be part of an evaluated sub-tree.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToLambda(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Casts the expression to a lambda expression, removing \r
- a cast if there's any.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToMethodCall(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Casts the body of the lambda expression to a <see cref="T:System.Linq.Expressions.MethodCallExpression"/>.\r
- </summary>\r
- <exception cref="T:System.ArgumentException">If the body is not a method call.</exception>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToPropertyInfo(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Converts the body of the lambda expression into the <see cref="T:System.Reflection.PropertyInfo"/> referenced by it.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsProperty(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property access.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.LambdaExpression)">\r
- <summary>\r
- Checks whether the body of the lambda expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.IsPropertyIndexer(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Checks whether the expression is a property indexer, which is true \r
- when the expression is an <see cref="T:System.Linq.Expressions.MethodCallExpression"/> whose \r
- <see cref="P:System.Linq.Expressions.MethodCallExpression.Method"/> has <see cref="P:System.Reflection.MethodBase.IsSpecialName"/> \r
- equal to <see langword="true"/>.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.CastTo``1(System.Linq.Expressions.Expression)">\r
- <summary>\r
- Creates an expression that casts the given expression to the <typeparamref name="T"/> \r
- type.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.ToStringFixed(System.Linq.Expressions.Expression)">\r
- <devdoc>\r
- TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583 \r
- is fixed.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ExpressionExtensions.GetCallInfo(System.Linq.Expressions.LambdaExpression,Moq.Mock)">\r
- <summary>\r
- Extracts, into a common form, information from a <see cref="T:System.Linq.Expressions.LambdaExpression"/>\r
- around either a <see cref="T:System.Linq.Expressions.MethodCallExpression"/> (for a normal method call)\r
- or a <see cref="T:System.Linq.Expressions.InvocationExpression"/> (for a delegate invocation).\r
- </summary>\r
- </member>\r
- <member name="T:Moq.ExpressionStringBuilder">\r
- <summary>\r
- The intention of <see cref="T:Moq.ExpressionStringBuilder"/> is to create a more readable \r
- string representation for the failure message.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Extensions.IsDelegate(System.Type)">\r
- <summary>\r
- Tests if a type is a delegate type (subclasses <see cref="T:System.Delegate"/>).\r
- </summary>\r
- </member>\r
- <member name="T:Moq.FluentMockContext">\r
- <summary>\r
- Tracks the current mock and interception context.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.FluentMockContext.IsActive">\r
- <summary>\r
- Having an active fluent mock context means that the invocation \r
- is being performed in "trial" mode, just to gather the \r
- target method and arguments that need to be matched later \r
- when the actual invocation is made.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNull``1(System.Linq.Expressions.Expression{System.Func{``0}},``0)">\r
- <summary>\r
- Ensures the given <paramref name="value"/> is not null.\r
- Throws <see cref="T:System.ArgumentNullException"/> otherwise.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotNullOrEmpty(System.Linq.Expressions.Expression{System.Func{System.String}},System.String)">\r
- <summary>\r
- Ensures the given string <paramref name="value"/> is not null or empty.\r
- Throws <see cref="T:System.ArgumentNullException"/> in the first case, or \r
- <see cref="T:System.ArgumentException"/> in the latter.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeInclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range including the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="M:Moq.Guard.NotOutOfRangeExclusive``1(System.Linq.Expressions.Expression{System.Func{``0}},``0,``0,``0)">\r
- <summary>\r
- Checks an argument to ensure it is in the specified range excluding the edges.\r
- </summary>\r
- <typeparam name="T">Type of the argument to check, it must be an <see cref="T:System.IComparable"/> type.\r
- </typeparam>\r
- <param name="reference">The expression containing the name of the argument.</param>\r
- <param name="value">The argument value to check.</param>\r
- <param name="from">The minimun allowed value for the argument.</param>\r
- <param name="to">The maximun allowed value for the argument.</param>\r
- </member>\r
- <member name="M:Moq.IInterceptStrategy.HandleIntercept(Moq.Proxy.ICallContext,Moq.InterceptorContext,Moq.CurrentInterceptContext)">\r
- <summary>\r
- Handle interception\r
- </summary>\r
- <param name="invocation">the current invocation context</param>\r
- <param name="ctx">shared data for the interceptor as a whole</param>\r
- <param name="localCtx">shared data among the strategies during a single interception</param>\r
- <returns>InterceptionAction.Continue if further interception has to be processed, otherwise InterceptionAction.Stop</returns>\r
- </member>\r
- <member name="T:Moq.IMocked`1">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.IMocked">\r
- <summary>\r
- Implemented by all generated mock object instances.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.IMocked`1.Mock">\r
- <summary>\r
- Reference the Mock that contains this as the <c>mock.Object</c> value.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Interceptor">\r
- <summary>\r
- Implements the actual interception and method invocation for \r
- all mocks.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetNonPublicEventFromName(System.String)">\r
- <summary>\r
- Get an eventInfo for a given event name. Search type ancestors depth first if necessary.\r
- Searches also in non public events.\r
- </summary>\r
- <param name="eventName">Name of the event, with the set_ or get_ prefix already removed</param>\r
- </member>\r
- <member name="M:Moq.AddActualInvocation.GetAncestorTypes(System.Type)">\r
- <summary>\r
- Given a type return all of its ancestors, both types and interfaces.\r
- </summary>\r
- <param name="initialType">The type to find immediate ancestors of</param>\r
- </member>\r
- <member name="T:Moq.It">\r
- <summary>\r
- Allows the specification of a matching condition for an\r
- argument in a method invocation, rather than a specific\r
- argument value. "It" refers to the argument being matched.\r
- </summary><remarks>\r
- This class allows the setup to match a method invocation\r
- with an arbitrary value, with a value in a specified range, or\r
- even one that matches a given predicate.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.It.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary><remarks>\r
- Typically used when the actual argument value for a method\r
- call is not relevant.\r
- </remarks><example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());\r
- </code>\r
- </example><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.IsNotNull``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type, except null.\r
- </summary><typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.It.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="match">The predicate used to match the method argument.</param><remarks>\r
- Allows the specification of a predicate to perform matching\r
- of method call arguments.\r
- </remarks><example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the\r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the\r
- method is a negative number:\r
- <code>\r
- mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </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">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsInRange(0, 100, Range.Inclusive)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsIn``1(``0[])">\r
- <summary>\r
- Matches any value that is present in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of possible values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with a value of 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(System.Collections.Generic.IEnumerable{``0})">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument with value not found from a list.\r
- <code>\r
- var values = new List<int> { 1, 2, 3 };\r
- \r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(values)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsNotIn``1(``0[])">\r
- <summary>\r
- Matches any value that is not found in the sequence specified.\r
- </summary><typeparam name="TValue">Type of the argument to check.</typeparam><param name="items">The sequence of disallowed values.</param><example>\r
- The following example shows how to expect a method call\r
- with an integer argument of any value except 1, 2, or 3.\r
- <code>\r
- mock.Setup(x => x.HasInventory(\r
- It.IsAny<string>(),\r
- It.IsNotIn(1, 2, 3)))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary><param name="regex">The pattern to use to match the string argument value.</param><example>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.It.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </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>\r
- The following example shows how to expect a call to a method where the\r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsResult`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallback">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``14(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12,``13})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.ICallbackResult"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean \r
- value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The argument type of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value. \r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring \r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback((string command) => Console.WriteLine(command));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IOccurrence">\r
- <summary>\r
- Defines occurrence members to constraint setups.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMostOnce">\r
- <summary>\r
- The expected invocation can happen at most once.\r
- </summary>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMostOnce();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IOccurrence.AtMost(System.Int32)">\r
- <summary>\r
- The expected invocation can happen at most specified number of times.\r
- </summary>\r
- <param name="callCount">The number of times to accept calls.</param>\r
- <example>\r
- <code>\r
- var mock = new Mock<ICommand>();\r
- mock.Setup(foo => foo.Execute("ping"))\r
- .AtMost( 5 );\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.IRaise`1">\r
- <summary>\r
- Defines the <c>Raises</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is met.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The event arguments to pass for the raised event.</param>\r
- <example>\r
- The following example shows how to raise an event when \r
- the setup is met:\r
- <code>\r
- var mock = new Mock<IContainer>();\r
- \r
- mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))\r
- .Raises(add => add.Added += null, EventArgs.Empty);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Func{System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="func">A function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.Object[])">\r
- <summary>\r
- Specifies the custom event that will be raised \r
- when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">An expression that represents an event attach or detach action.</param>\r
- <param name="args">The arguments to pass to the custom delegate (non EventHandler-compatible).</param>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``1(System.Action{`0},System.Func{``0,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``2(System.Action{`0},System.Func{``0,``1,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``3(System.Action{`0},System.Func{``0,``1,``2,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``4(System.Action{`0},System.Func{``0,``1,``2,``3,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``5(System.Action{`0},System.Func{``0,``1,``2,``3,``4,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``6(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``7(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="M:Moq.Language.IRaise`1.Raises``8(System.Action{`0},System.Func{``0,``1,``2,``3,``4,``5,``6,``7,System.EventArgs})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies the event that will be raised when the setup is matched.\r
- </summary>\r
- <param name="eventExpression">The expression that represents an event attach or detach action.</param>\r
- <param name="func">The function that will build the <see cref="T:System.EventArgs"/> \r
- to pass when raising the event.</param>\r
- <typeparam name="T1">The type of the first argument received by the expected invocation.</typeparam>\r
- <typeparam name="T2">The type of the second argument received by the expected invocation.</typeparam>\r
- <typeparam name="T3">The type of the third argument received by the expected invocation.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument received by the expected invocation.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument received by the expected invocation.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument received by the expected invocation.</typeparam>\r
- <seealso cref="M:Moq.Language.IRaise`1.Raises(System.Action{`0},System.EventArgs)"/>\r
- </member>\r
- <member name="T:Moq.Language.IVerifies">\r
- <summary>\r
- Defines the <c>Verifiable</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IVerifies.Verifiable(System.String)">\r
- <summary>\r
- Marks the expectation as verifiable, meaning that a call \r
- to <see cref="M:Moq.Mock.Verify"/> will check if this particular \r
- expectation was met, and specifies a message for failures.\r
- </summary>\r
- <example>\r
- The following example marks the expectation as verifiable:\r
- <code>\r
- mock.Expect(x => x.Execute("ping"))\r
- .Returns(true)\r
- .Verifiable("Ping should be executed always!");\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`1">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ICallbackResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IThrows">\r
- <summary>\r
- Defines the <c>Throws</c> verb.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws(System.Exception)">\r
- <summary>\r
- Specifies the exception to throw when the method is invoked.\r
- </summary>\r
- <param name="exception">Exception instance to throw.</param>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IThrows.Throws``1">\r
- <summary>\r
- Specifies the type of exception to throw when the method is invoked.\r
- </summary>\r
- <typeparam name="TException">Type of exception to instantiate and throw when the setup is matched.</typeparam>\r
- <example>\r
- This example shows how to throw an exception when the method is \r
- invoked with an empty string argument:\r
- <code>\r
- mock.Setup(x => x.Execute(""))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IThrowsResult">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetup`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallback`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb and overloads for callbacks on\r
- setups that return a value.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value of the setup.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``2(System.Action{``0,``1})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``3(System.Action{``0,``1,``2})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``4(System.Action{``0,``1,``2,``3})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``5(System.Action{``0,``1,``2,``3,``4})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``6(System.Action{``0,``1,``2,``3,``4,``5})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``7(System.Action{``0,``1,``2,``3,``4,``5,``6})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``8(System.Action{``0,``1,``2,``3,``4,``5,``6,``7})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``9(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``10(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``11(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``12(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``13(System.Action{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,``12})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original\r
- arguments.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="action">The callback method to invoke.</param>\r
- <returns>A reference to <see cref="T:Moq.Language.Flow.IReturnsThrows`2"/> interface.</returns>\r
- <example>\r
- Invokes the given callback with the concrete invocation arguments values. \r
- <para>\r
- Notice how the specific arguments are retrieved by simply declaring \r
- them as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>(),\r
- It.IsAny<string>()))\r
- .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));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the method is called.\r
- </summary>\r
- <param name="action">The callback method to invoke.</param>\r
- <example>\r
- The following example specifies a callback to set a boolean value that can be used later:\r
- <code>\r
- var called = false;\r
- mock.Setup(x => x.Execute())\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- Note that in the case of value-returning methods, after the <c>Callback</c>\r
- call you can still specify the return value.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.ICallback`2.Callback``1(System.Action{``0})">\r
- <summary>\r
- Specifies a callback to invoke when the method is called that receives the original arguments.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the concrete invocation argument value.\r
- <para>\r
- Notice how the specific string argument is retrieved by simply declaring\r
- it as part of the lambda expression for the callback:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Callback(command => Console.WriteLine(command))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrows`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IReturns`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TResult">Type of the return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``2(System.Func{``0,``1,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2) => arg1 + arg2);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``3(System.Func{``0,``1,``2,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``4(System.Func{``0,``1,``2,``3,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``5(System.Func{``0,``1,``2,``3,``4,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``6(System.Func{``0,``1,``2,``3,``4,``5,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``7(System.Func{``0,``1,``2,``3,``4,``5,``6,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``8(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``9(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``10(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``11(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``12(System.Func{``0,``1,``2,``3,``4,``5,``6,``7,``8,``9,``10,``11,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <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})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T1">The type of the first argument of the invoked method.</typeparam>\r
- <typeparam name="T2">The type of the second argument of the invoked method.</typeparam>\r
- <typeparam name="T3">The type of the third argument of the invoked method.</typeparam>\r
- <typeparam name="T4">The type of the fourth argument of the invoked method.</typeparam>\r
- <typeparam name="T5">The type of the fifth argument of the invoked method.</typeparam>\r
- <typeparam name="T6">The type of the sixth argument of the invoked method.</typeparam>\r
- <typeparam name="T7">The type of the seventh argument of the invoked method.</typeparam>\r
- <typeparam name="T8">The type of the eighth argument of the invoked method.</typeparam>\r
- <typeparam name="T9">The type of the nineth argument of the invoked method.</typeparam>\r
- <typeparam name="T10">The type of the tenth argument of the invoked method.</typeparam>\r
- <typeparam name="T11">The type of the eleventh argument of the invoked method.</typeparam>\r
- <typeparam name="T12">The type of the twelfth argument of the invoked method.</typeparam>\r
- <typeparam name="T13">The type of the thirteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T14">The type of the fourteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T15">The type of the fifteenth argument of the invoked method.</typeparam>\r
- <typeparam name="T16">The type of the sixteenth argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <return>Returns a calculated value which is evaluated lazily at the time of the invocation.</return>\r
- <example>\r
- <para>\r
- The return value is calculated from the value of the actual method invocation arguments. \r
- Notice how the arguments are retrieved by simply declaring them as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(\r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>(), \r
- It.IsAny<int>()))\r
- .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);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the method call:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value when the method is called:\r
- <code>\r
- mock.Setup(x => x.Execute("ping"))\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the method \r
- is executed and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.Returns``1(System.Func{``0,`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return from the method, \r
- retrieving the arguments for the invocation.\r
- </summary>\r
- <typeparam name="T">The type of the argument of the invoked method.</typeparam>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example group="returns">\r
- Return a calculated value which is evaluated lazily at the time of the invocation.\r
- <para>\r
- The lookup list can change between invocations and the setup \r
- will return different values accordingly. Also, notice how the specific \r
- string argument is retrieved by simply declaring it as part of the lambda \r
- expression:\r
- </para>\r
- <code>\r
- mock.Setup(x => x.Execute(It.IsAny<string>()))\r
- .Returns((string command) => returnValues[command]);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturns`2.CallBase">\r
- <summary>\r
- Calls the real method of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real method of the object.</returns>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackGetter`2">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property getter setups.\r
- </summary>\r
- <seealso cref="M:Moq.Mock`1.SetupGet``1(System.Linq.Expressions.Expression{System.Func{`0,``0}})"/>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackGetter`2.Callback(System.Action)">\r
- <summary>\r
- Specifies a callback to invoke when the property is retrieved.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Callback(() => called = true)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.Flow.IReturnsThrowsGetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.IReturnsGetter`2">\r
- <summary>\r
- Defines the <c>Returns</c> verb for property get setups.\r
- </summary>\r
- <typeparam name="TMock">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(`1)">\r
- <summary>\r
- Specifies the value to return.\r
- </summary>\r
- <param name="value">The value to return, or <see langword="null"/>.</param>\r
- <example>\r
- Return a <c>true</c> value from the property getter call:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.Returns(System.Func{`1})">\r
- <summary>\r
- Specifies a function that will calculate the value to return for the property.\r
- </summary>\r
- <param name="valueFunction">The function that will calculate the return value.</param>\r
- <example>\r
- Return a calculated value when the property is retrieved:\r
- <code>\r
- mock.SetupGet(x => x.Suspended)\r
- .Returns(() => returnValues[0]);\r
- </code>\r
- The lambda expression to retrieve the return value is lazy-executed, \r
- meaning that its value may change depending on the moment the property \r
- is retrieved and the value the <c>returnValues</c> array has at \r
- that moment.\r
- </example>\r
- </member>\r
- <member name="M:Moq.Language.IReturnsGetter`2.CallBase">\r
- <summary>\r
- Calls the real property of the object and returns its return value.\r
- </summary>\r
- <returns>The value calculated by the real property of the object.</returns>\r
- </member>\r
- <member name="T:Moq.Language.Flow.ISetupSetter`2">\r
- <summary>\r
- Implements the fluent API.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Language.ICallbackSetter`1">\r
- <summary>\r
- Defines the <c>Callback</c> verb for property setter setups.\r
- </summary>\r
- <typeparam name="TProperty">Type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Language.ICallbackSetter`1.Callback(System.Action{`0})">\r
- <summary>\r
- Specifies a callback to invoke when the property is set that receives the \r
- property value being set.\r
- </summary>\r
- <param name="action">Callback method to invoke.</param>\r
- <example>\r
- Invokes the given callback with the property value being set. \r
- <code>\r
- mock.SetupSet(x => x.Suspended)\r
- .Callback((bool state) => Console.WriteLine(state));\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Language.ISetupSequentialResult`1">\r
- <summary>\r
- Language for ReturnSequence\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Returns(`0)">\r
- <summary>\r
- Returns value\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws(System.Exception)">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.Throws``1">\r
- <summary>\r
- Throws an exception\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Language.ISetupSequentialResult`1.CallBase">\r
- <summary>\r
- Calls original method\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Linq.FluentMockVisitor.isFirst">\r
- <summary>\r
- The first method call or member access will be the \r
- last segment of the expression (depth-first traversal), \r
- which is the one we have to Setup rather than FluentMock.\r
- And the last one is the one we have to Mock.Get rather \r
- than FluentMock.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Linq.MockQueryable`1">\r
- <summary>\r
- A default implementation of IQueryable for use with QueryProvider\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Linq.MockQueryable`1.#ctor(System.Linq.Expressions.MethodCallExpression)">\r
- <summary>\r
- The <paramref name="underlyingCreateMocks"/> is a \r
- static method that returns an IQueryable of Mocks of T which is used to \r
- apply the linq specification to.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockRepository">\r
- <summary>\r
- Utility repository class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the repository constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This repository class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="repository">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockRepository"/>:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- repository.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the repository \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Loose);\r
- \r
- var foo = repository.Create<IFoo>();\r
- var bar = repository.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the repository\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the repository\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- repository.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the repository with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var repository = new MockRepository(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = repository.Create<IFoo>(MockBehavior.Loose);\r
- var bar = repository.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- repository.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="T:Moq.MockFactory">\r
- <summary>\r
- Utility factory class to use to construct multiple \r
- mocks when consistent verification is \r
- desired for all of them.\r
- </summary>\r
- <remarks>\r
- If multiple mocks will be created during a test, passing \r
- the desired <see cref="T:Moq.MockBehavior"/> (if different than the \r
- <see cref="F:Moq.MockBehavior.Default"/> or the one \r
- passed to the factory constructor) and later verifying each\r
- mock can become repetitive and tedious.\r
- <para>\r
- This factory class helps in that scenario by providing a \r
- simplified creation of multiple mocks with a default \r
- <see cref="T:Moq.MockBehavior"/> (unless overriden by calling \r
- <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/>) and posterior verification.\r
- </para>\r
- </remarks>\r
- <example group="factory">\r
- The following is a straightforward example on how to \r
- create and automatically verify strict mocks using a <see cref="T:Moq.MockFactory"/>:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // no need to call Verifiable() on the setup \r
- // as we'll be validating all of them anyway.\r
- foo.Setup(f => f.Do());\r
- bar.Setup(b => b.Redo());\r
- \r
- // exercise the mocks here\r
- \r
- factory.VerifyAll(); \r
- // At this point all setups are already checked \r
- // and an optional MockException might be thrown. \r
- // Note also that because the mocks are strict, any invocation \r
- // that doesn't have a matching setup will also throw a MockException.\r
- </code>\r
- The following examples shows how to setup the factory \r
- to create loose mocks and later verify only verifiable setups:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Loose);\r
- \r
- var foo = factory.Create<IFoo>();\r
- var bar = factory.Create<IBar>();\r
- \r
- // this setup will be verified when we verify the factory\r
- foo.Setup(f => f.Do()).Verifiable();\r
- \r
- // this setup will NOT be verified \r
- foo.Setup(f => f.Calculate());\r
- \r
- // this setup will be verified when we verify the factory\r
- bar.Setup(b => b.Redo()).Verifiable();\r
- \r
- // exercise the mocks here\r
- // note that because the mocks are Loose, members \r
- // called in the interfaces for which no matching\r
- // setups exist will NOT throw exceptions, \r
- // and will rather return default values.\r
- \r
- factory.Verify();\r
- // At this point verifiable setups are already checked \r
- // and an optional MockException might be thrown.\r
- </code>\r
- The following examples shows how to setup the factory with a \r
- default strict behavior, overriding that default for a \r
- specific mock:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- // this particular one we want loose\r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- var bar = factory.Create<IBar>();\r
- \r
- // specify setups\r
- \r
- // exercise the mocks here\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- <seealso cref="T:Moq.MockBehavior"/>\r
- </member>\r
- <member name="M:Moq.MockFactory.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the factory with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the factory.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> factory method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>();\r
- // use mock on tests\r
- \r
- factory.VerifyAll();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(System.Object[])">\r
- <summary>\r
- Creates a new mock with the default <see cref="T:Moq.MockBehavior"/> \r
- specified at factory construction time and with the \r
- the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example ignore="true">\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>("Foo", 25, true);\r
- // use mock on tests\r
- \r
- factory.Verify();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior)">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/>.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Strict);\r
- \r
- var foo = factory.Create<IFoo>(MockBehavior.Loose);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.Create``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Creates a new mock with the given <paramref name="behavior"/> \r
- and with the the given constructor arguments for the class.\r
- </summary>\r
- <remarks>\r
- The mock will try to find the best match constructor given the \r
- constructor arguments, and invoke that to initialize the instance. \r
- This applies only to classes, not interfaces.\r
- </remarks>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">Behavior to use for the mock, which overrides \r
- the default behavior specified at factory construction time.</param>\r
- <param name="args">Constructor arguments for mocked classes.</param>\r
- <returns>A new <see cref="T:Moq.Mock`1"/>.</returns>\r
- <example group="factory">\r
- The following example shows how to create a mock with a different \r
- behavior to that specified as the default for the factory, passing \r
- constructor arguments:\r
- <code>\r
- var factory = new MockFactory(MockBehavior.Default);\r
- \r
- var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.MockFactory.CreateMock``1(Moq.MockBehavior,System.Object[])">\r
- <summary>\r
- Implements creation of a new mock within the factory.\r
- </summary>\r
- <typeparam name="T">Type to mock.</typeparam>\r
- <param name="behavior">The behavior for the new mock.</param>\r
- <param name="args">Optional arguments for the construction of the mock.</param>\r
- </member>\r
- <member name="M:Moq.MockFactory.Verify">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyAll">\r
- <summary>\r
- Verifies all verifiable expectations on all mocks created \r
- by this factory.\r
- </summary>\r
- <seealso cref="M:Moq.Mock.Verify"/>\r
- <exception cref="T:Moq.MockException">One or more mocks had expectations that were not satisfied.</exception>\r
- </member>\r
- <member name="M:Moq.MockFactory.VerifyMocks(System.Action{Moq.Mock})">\r
- <summary>\r
- Invokes <paramref name="verifyAction"/> for each mock \r
- in <see cref="P:Moq.MockFactory.Mocks"/>, and accumulates the resulting \r
- <see cref="T:Moq.MockVerificationException"/> that might be \r
- thrown from the action.\r
- </summary>\r
- <param name="verifyAction">The action to execute against \r
- each mock.</param>\r
- </member>\r
- <member name="P:Moq.MockFactory.CallBase">\r
- <summary>\r
- Whether the base member virtual implementation will be called \r
- for mocked classes if no setup is matched. Defaults to <see langword="false"/>.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.DefaultValue">\r
- <summary>\r
- Specifies the behavior to use when returning default values for \r
- unexpected invocations on loose mocks.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockFactory.Mocks">\r
- <summary>\r
- Gets the mocks that have been created by this factory and \r
- that will get verified together.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockRepository.#ctor(Moq.MockBehavior)">\r
- <summary>\r
- Initializes the repository with the given <paramref name="defaultBehavior"/> \r
- for newly created mocks from the repository.\r
- </summary>\r
- <param name="defaultBehavior">The behavior to use for mocks created \r
- using the <see cref="M:Moq.MockFactory.Create``1"/> repository method if not overriden \r
- by using the <see cref="M:Moq.MockFactory.Create``1(Moq.MockBehavior)"/> overload.</param>\r
- </member>\r
- <member name="T:Moq.Mocks">\r
- <summary>\r
- Allows querying the universe of mocks for those that behave \r
- according to the LINQ query specification.\r
- </summary>\r
- <devdoc>\r
- This entry-point into Linq to Mocks is the only one in the root Moq \r
- namespace to ease discovery. But to get all the mocking extension \r
- methods on Object, a using of Moq.Linq must be done, so that the \r
- polluting of the intellisense for all objects is an explicit opt-in.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.Of``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Access the universe of mocks of the given type, to retrieve those \r
- that behave according to the LINQ query specification.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object to query.</typeparam>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Creates an mock object of the indicated type.\r
- </summary>\r
- <param name="specification">The predicate with the setup expressions.</param>\r
- <typeparam name="T">The type of the mocked object.</typeparam>\r
- <returns>The mocked object created.</returns>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMockQuery``1">\r
- <summary>\r
- Creates the mock query with the underlying queriable implementation.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateQueryable``1">\r
- <summary>\r
- Wraps the enumerator inside a queryable.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.CreateMocks``1">\r
- <summary>\r
- Method that is turned into the actual call from .Query{T}, to \r
- transform the queryable query into a normal enumerable query.\r
- This method is never used directly by consumers.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Mocks.SetPropery``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Extension method used to support Linq-like setup properties that are not virtual but do have \r
- a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)\r
- </summary>\r
- </member>\r
- <member name="T:Moq.QueryableMockExtensions">\r
- <summary>\r
- Helper extensions that are used by the query translator.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.QueryableMockExtensions.FluentMock``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Retrieves a fluent mock from the given setup expression.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Match">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><remarks>\r
- See also <see cref="T:Moq.Match`1"/>.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Matcher``1">\r
- <devdoc>\r
- Provided for the sole purpose of rendering the delegate passed to the \r
- matcher constructor if no friendly render lambda is provided.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0})">\r
- <summary>\r
- Initializes the match with the condition that\r
- will be checked in order to match invocation\r
- values.\r
- </summary><param name="condition">The condition to match against actual values.</param><remarks>\r
- <seealso cref="T:Moq.Match`1"/>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Match.Create``1(System.Predicate{``0},System.Linq.Expressions.Expression{System.Func{``0}})">\r
- <!-- No matching elements were found for the following include tag --><include file="Match.xdoc" path="docs/doc[@for="Match.Create{T}(condition,renderExpression"]/*"/>\r
- </member>\r
- <member name="M:Moq.Match.SetLastMatch``1(Moq.Match{``0})">\r
- <devdoc>\r
- This method is used to set an expression as the last matcher invoked, \r
- which is used in the SetupSet to allow matchers in the prop = value \r
- delegate expression. This delegate is executed in "fluent" mode in \r
- order to capture the value being set, and construct the corresponding \r
- methodcall.\r
- This is also used in the MatcherFactory for each argument expression.\r
- This method ensures that when we execute the delegate, we \r
- also track the matcher that was invoked, so that when we create the \r
- methodcall we build the expression using it, rather than the null/default \r
- value returned from the actual invocation.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.Match`1">\r
- <summary>\r
- Allows creation custom value matchers that can be used on setups and verification,\r
- completely replacing the built-in <see cref="T:Moq.It"/> class with your own argument\r
- matching rules.\r
- </summary><typeparam name="T">Type of the value to match.</typeparam><remarks>\r
- The argument matching is used to determine whether a concrete\r
- invocation in the mock matches a given setup. This\r
- matching mechanism is fully extensible.\r
- </remarks><example>\r
- Creating a custom matcher is straightforward. You just need to create a method\r
- that returns a value from a call to <see cref="M:Moq.Match.Create``1(System.Predicate{``0})"/> with \r
- your matching condition and optional friendly render expression:\r
- <code>\r
- [Matcher]\r
- public Order IsBigOrder()\r
- {\r
- return Match<Order>.Create(\r
- o => o.GrandTotal >= 5000, \r
- /* a friendly expression to render on failures */\r
- () => IsBigOrder());\r
- }\r
- </code>\r
- This method can be used in any mock setup invocation:\r
- <code>\r
- mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();\r
- </code>\r
- At runtime, Moq knows that the return value was a matcher (note that the method MUST be \r
- annotated with the [Matcher] attribute in order to determine this) and\r
- evaluates your predicate with the actual value passed into your predicate.\r
- <para>\r
- Another example might be a case where you want to match a lists of orders\r
- that contains a particular one. You might create matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an\r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
-\r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.MatcherAttribute">\r
- <summary>\r
- Marks a method as a matcher, which allows complete replacement \r
- of the built-in <see cref="T:Moq.It"/> class with your own argument \r
- matching rules.\r
- </summary>\r
- <remarks>\r
- <b>This feature has been deprecated in favor of the new \r
- and simpler <see cref="T:Moq.Match`1"/>.\r
- </b>\r
- <para>\r
- The argument matching is used to determine whether a concrete \r
- invocation in the mock matches a given setup. This \r
- matching mechanism is fully extensible. \r
- </para>\r
- <para>\r
- There are two parts of a matcher: the compiler matcher \r
- and the runtime matcher.\r
- <list type="bullet">\r
- <item>\r
- <term>Compiler matcher</term>\r
- <description>Used to satisfy the compiler requirements for the \r
- argument. Needs to be a method optionally receiving any arguments \r
- you might need for the matching, but with a return type that \r
- matches that of the argument. \r
- <para>\r
- Let's say I want to match a lists of orders that contains \r
- a particular one. I might create a compiler matcher like the following:\r
- </para>\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- }\r
- </code>\r
- Now we can invoke this static method instead of an argument in an \r
- invocation:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- </code>\r
- Note that the return value from the compiler matcher is irrelevant. \r
- This method will never be called, and is just used to satisfy the \r
- compiler and to signal Moq that this is not a method that we want \r
- to be invoked at runtime.\r
- </description>\r
- </item>\r
- <item>\r
- <term>Runtime matcher</term>\r
- <description>\r
- The runtime matcher is the one that will actually perform evaluation \r
- when the test is run, and is defined by convention to have the \r
- same signature as the compiler matcher, but where the return \r
- value is the first argument to the call, which contains the \r
- object received by the actual invocation at runtime:\r
- <code>\r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- </code>\r
- At runtime, the mocked method will be invoked with a specific \r
- list of orders. This value will be passed to this runtime \r
- matcher as the first argument, while the second argument is the \r
- one specified in the setup (<c>x.Save(Orders.Contains(order))</c>).\r
- <para>\r
- The boolean returned determines whether the given argument has been \r
- matched. If all arguments to the expected method are matched, then \r
- the setup matches and is evaluated.\r
- </para>\r
- </description>\r
- </item>\r
- </list>\r
- </para>\r
- Using this extensible infrastructure, you can easily replace the entire \r
- <see cref="T:Moq.It"/> set of matchers with your own. You can also avoid the \r
- typical (and annoying) lengthy expressions that result when you have \r
- multiple arguments that use generics.\r
- </remarks>\r
- <example>\r
- The following is the complete example explained above:\r
- <code>\r
- public static class Orders\r
- {\r
- [Matcher]\r
- public static IEnumerable<Order> Contains(Order order)\r
- {\r
- return null;\r
- }\r
- \r
- public static bool Contains(IEnumerable<Order> orders, Order order)\r
- {\r
- return orders.Contains(order);\r
- }\r
- }\r
- </code>\r
- And the concrete test using this matcher:\r
- <code>\r
- var order = new Order { ... };\r
- var mock = new Mock<IRepository<Order>>();\r
- \r
- mock.Setup(x => x.Save(Orders.Contains(order)))\r
- .Throws<ArgumentException>();\r
- \r
- // use mock, invoke Save, and have the matcher filter.\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Matchers.MatcherAttributeMatcher">\r
- <summary>\r
- Matcher to treat static functions as matchers.\r
- \r
- mock.Setup(x => x.StringMethod(A.MagicString()));\r
- \r
- public static class A \r
- {\r
- [Matcher]\r
- public static string MagicString() { return null; }\r
- public static bool MagicString(string arg)\r
- {\r
- return arg == "magic";\r
- }\r
- }\r
- \r
- Will succeed if: mock.Object.StringMethod("magic");\r
- and fail with any other call.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MethodCallReturn">\r
- <devdoc>\r
- We need this non-generics base class so that \r
- we can use <see cref="P:Moq.MethodCallReturn.HasReturnValue"/> from \r
- generic code.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.MockBehavior">\r
- <summary>\r
- Options to customize the behavior of the mock. \r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Strict">\r
- <summary>\r
- Causes the mock to always throw \r
- an exception for invocations that don't have a \r
- corresponding setup.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Loose">\r
- <summary>\r
- Will never throw exceptions, returning default \r
- values when necessary (null for reference types, \r
- zero for value types or empty enumerables and arrays).\r
- </summary>\r
- </member>\r
- <member name="F:Moq.MockBehavior.Default">\r
- <summary>\r
- Default mock behavior, which equals <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockDefaultValueProvider">\r
- <summary>\r
- A <see cref="T:Moq.IDefaultValueProvider"/> that returns an empty default value \r
- for non-mockeable types, and mocks for all other types (interfaces and \r
- non-sealed classes) that can be mocked.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException">\r
- <summary>\r
- Exception thrown by mocks when setups are not matched, \r
- the mock is not properly setup, etc.\r
- </summary>\r
- <remarks>\r
- A distinct exception type is provided so that exceptions \r
- thrown by the mock can be differentiated in tests that \r
- expect other exceptions to be thrown (i.e. ArgumentException).\r
- <para>\r
- Richer exception hierarchy/types are not provided as \r
- tests typically should <b>not</b> catch or expect exceptions \r
- from the mocks. These are typically the result of changes \r
- in the tested class or its collaborators implementation, and \r
- result in fixes in the mock setup so that they dissapear and \r
- allow the test to pass.\r
- </para>\r
- </remarks>\r
- </member>\r
- <member name="P:Moq.MockException.IsVerificationError">\r
- <summary>\r
- Indicates whether this exception is a verification fault raised by Verify()\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockException.ExceptionReason">\r
- <summary>\r
- Made internal as it's of no use for \r
- consumers, but it's important for \r
- our own tests.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockVerificationException">\r
- <devdoc>\r
- Used by the mock factory to accumulate verification \r
- failures.\r
- </devdoc>\r
- </member>\r
- <member name="T:Moq.MockSequence">\r
- <summary>\r
- Helper class to setup a full trace between many mocks\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequence.#ctor">\r
- <summary>\r
- Initialize a trace setup\r
- </summary>\r
- </member>\r
- <member name="P:Moq.MockSequence.Cyclic">\r
- <summary>\r
- Allow sequence to be repeated\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockSequenceHelper">\r
- <summary>\r
- define nice api\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockSequenceHelper.InSequence``1(Moq.Mock{``0},Moq.MockSequence)">\r
- <summary>\r
- Perform an expectation in the trace.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.MockLegacyExtensions">\r
- <summary>\r
- Provides legacy API members as extensions so that \r
- existing code continues to compile, but new code \r
- doesn't see then.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.MockLegacyExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},``1,System.String)">\r
- <summary>\r
- Obsolete.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.ObsoleteMockExtensions">\r
- <summary>\r
- Provides additional methods on mocks.\r
- </summary>\r
- <devdoc>\r
- Provided as extension methods as they confuse the compiler \r
- with the overloads taking Action.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.SetupSet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Specifies a setup on the mocked type for a call to \r
- to a property setter, regardless of its value.\r
- </summary>\r
- <remarks>\r
- If more than one setup is set for the same property setter, \r
- the latest one wins and is the one that will be executed.\r
- </remarks>\r
- <typeparam name="TProperty">Type of the property. Typically omitted as it can be inferred from the expression.</typeparam>\r
- <typeparam name="T">Type of the mock.</typeparam>\r
- <param name="mock">The target mock for the setup.</param>\r
- <param name="expression">Lambda expression that specifies the property setter.</param>\r
- <example group="setups">\r
- <code>\r
- mock.SetupSet(x => x.Suspended);\r
- </code>\r
- </example>\r
- <devdoc>\r
- This method is not legacy, but must be on an extension method to avoid \r
- confusing the compiler with the new Action syntax.\r
- </devdoc>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Verifies that a property has been set on the mock, regarless of its value.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <param name="expression">Expression to verify.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times.\r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="M:Moq.ObsoleteMockExtensions.VerifySet``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},Moq.Times,System.String)">\r
- <summary>\r
- Verifies that a property has been set on the mock, regardless \r
- of the value but only the specified number of times, and specifying a failure \r
- error message. \r
- </summary>\r
- <example group="verification">\r
- This example assumes that the mock has been used, \r
- and later we want to verify that a given invocation \r
- with specific parameters was performed:\r
- <code>\r
- var mock = new Mock<IWarehouse>();\r
- // exercise mock\r
- //...\r
- // Will throw if the test code didn't set the IsClosed property.\r
- mock.VerifySet(warehouse => warehouse.IsClosed);\r
- </code>\r
- </example>\r
- <exception cref="T:Moq.MockException">The invocation was not performed on the mock.</exception>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="mock">The mock instance.</param>\r
- <typeparam name="T">Mocked type.</typeparam>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="failMessage">Message to show if verification fails.</param>\r
- <param name="expression">Expression to verify.</param>\r
- <typeparam name="TProperty">Type of the property to verify. Typically omitted as it can \r
- be inferred from the expression's return type.</typeparam>\r
- </member>\r
- <member name="T:Moq.Protected.IProtectedMock`1">\r
- <summary>\r
- Allows setups to be specified for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for a void method invocation with the given \r
- <paramref name="voidMethodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="voidMethodName">The name of the void method to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Setup``1(System.String,System.Object[])">\r
- <summary>\r
- Specifies a setup for an invocation on a property or a non void method with the given \r
- <paramref name="methodOrPropertyName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <param name="methodOrPropertyName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TResult">The return type of the method or property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupGet``1(System.String)">\r
- <summary>\r
- Specifies a setup for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.SetupSet``1(System.String,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="value">The property value. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for a void method with the given <paramref name="methodName"/>,\r
- optionally specifying arguments for the method call. Use in conjuntion with the default\r
- <see cref="F:Moq.MockBehavior.Loose"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by\r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the void method to be verified.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.Verify``1(System.String,Moq.Times,System.Object[])">\r
- <summary>\r
- Specifies a verify for an invocation on a property or a non void method with the given \r
- <paramref name="methodName"/>, optionally specifying arguments for the method call.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="methodName">The name of the method or property to be invoked.</param>\r
- <param name="args">The optional arguments for the invocation. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TResult">The type of return value from the expression.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifyGet``1(System.String,Moq.Times)">\r
- <summary>\r
- Specifies a verify for an invocation on a property getter with the given \r
- <paramref name="propertyName"/>.\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- </summary>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <typeparam name="TProperty">The type of the property.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.IProtectedMock`1.VerifySet``1(System.String,Moq.Times,System.Object)">\r
- <summary>\r
- Specifies a setup for an invocation on a property setter with the given \r
- <paramref name="propertyName"/>.\r
- </summary>\r
- <exception cref="T:Moq.MockException">The invocation was not call the times specified by \r
- <paramref name="times"/>.</exception>\r
- <param name="propertyName">The name of the property.</param>\r
- <param name="times">The number of times a method is allowed to be called.</param>\r
- <param name="value">The property value.</param>\r
- <typeparam name="TProperty">The type of the property. If argument matchers are used, \r
- remember to use <see cref="T:Moq.Protected.ItExpr"/> rather than <see cref="T:Moq.It"/>.</typeparam>\r
- </member>\r
- <member name="T:Moq.Protected.ItExpr">\r
- <summary>\r
- Allows the specification of a matching condition for an \r
- argument in a protected member setup, rather than a specific \r
- argument value. "ItExpr" refers to the argument being matched.\r
- </summary>\r
- <remarks>\r
- <para>Use this variant of argument matching instead of \r
- <see cref="T:Moq.It"/> for protected setups.</para>\r
- This class allows the setup to match a method invocation \r
- with an arbitrary value, with a value in a specified range, or \r
- even one that matches a given predicate, or null.\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsNull``1">\r
- <summary>\r
- Matches a null value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Required for protected mocks as the null value cannot be used \r
- directly as it prevents proper method overload selection.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with a null string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsNull<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsAny``1">\r
- <summary>\r
- Matches any value of the given <typeparamref name="TValue"/> type.\r
- </summary>\r
- <remarks>\r
- Typically used when the actual argument value for a method \r
- call is not relevant.\r
- </remarks>\r
- <example>\r
- <code>\r
- // Throws an exception for a call to Remove with any string value.\r
- mock.Protected()\r
- .Setup("Remove", ItExpr.IsAny<string>())\r
- .Throws(new InvalidOperationException());\r
- </code>\r
- </example>\r
- <typeparam name="TValue">Type of the value.</typeparam>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.Is``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})">\r
- <summary>\r
- Matches any value that satisfies the given predicate.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="match">The predicate used to match the method argument.</param>\r
- <remarks>\r
- Allows the specification of a predicate to perform matching \r
- of method call arguments.\r
- </remarks>\r
- <example>\r
- This example shows how to return the value <c>1</c> whenever the argument to the \r
- <c>Do</c> method is an even number.\r
- <code>\r
- mock.Protected()\r
- .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))\r
- .Returns(1);\r
- </code>\r
- This example shows how to throw an exception if the argument to the \r
- method is a negative number:\r
- <code>\r
- mock.Protected()\r
- .Setup("GetUser", ItExpr.Is<int>(i => i < 0))\r
- .Throws(new ArgumentException());\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsInRange``1(``0,``0,Moq.Range)">\r
- <summary>\r
- Matches any value that is in the range specified.\r
- </summary>\r
- <typeparam name="TValue">Type of the argument to check.</typeparam>\r
- <param name="from">The lower bound of the range.</param>\r
- <param name="to">The upper bound of the range.</param>\r
- <param name="rangeKind">The kind of range. See <see cref="T:Moq.Range"/>.</param>\r
- <example>\r
- The following example shows how to expect a method call \r
- with an integer argument within the 0..100 range.\r
- <code>\r
- mock.Protected()\r
- .Setup("HasInventory",\r
- ItExpr.IsAny<string>(),\r
- ItExpr.IsInRange(0, 100, Range.Inclusive))\r
- .Returns(false);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+"))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="M:Moq.Protected.ItExpr.IsRegex(System.String,System.Text.RegularExpressions.RegexOptions)">\r
- <summary>\r
- Matches a string argument if it matches the given regular expression pattern.\r
- </summary>\r
- <param name="regex">The pattern to use to match the string argument value.</param>\r
- <param name="options">The options used to interpret the pattern.</param>\r
- <example>\r
- The following example shows how to expect a call to a method where the \r
- string argument matches the given regular expression, in a case insensitive way:\r
- <code>\r
- mock.Protected()\r
- .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))\r
- .Returns(1);\r
- </code>\r
- </example>\r
- </member>\r
- <member name="T:Moq.Protected.ProtectedExtension">\r
- <summary>\r
- Enables the <c>Protected()</c> method on <see cref="T:Moq.Mock`1"/>, \r
- allowing setups to be set for protected members by using their \r
- name as a string, rather than strong-typing them which is not possible \r
- due to their visibility.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Protected.ProtectedExtension.Protected``1(Moq.Mock{``0})">\r
- <summary>\r
- Enable protected setups for the mock.\r
- </summary>\r
- <typeparam name="T">Mocked object type. Typically omitted as it can be inferred from the mock instance.</typeparam>\r
- <param name="mock">The mock to set the protected setups on.</param>\r
- </member>\r
- <member name="T:ThisAssembly">\r
- <group name="overview" title="Overview" order="0" />\r
- <group name="setups" title="Specifying setups" order="1" />\r
- <group name="returns" title="Returning values from members" order="2" />\r
- <group name="verification" title="Verifying setups" order="3" />\r
- <group name="advanced" title="Advanced scenarios" order="99" />\r
- <group name="factory" title="Using MockFactory for consistency across mocks" order="4" />\r
- </member>\r
- <member name="T:Moq.Properties.Resources">\r
- <summary>\r
- A strongly-typed resource class, for looking up localized strings, etc.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ResourceManager">\r
- <summary>\r
- Returns the cached ResourceManager instance used by this class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.Culture">\r
- <summary>\r
- Overrides the current thread's CurrentUICulture property for all\r
- resource lookups using this strongly typed resource class.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AlreadyInitialized">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ArgumentCannotBeEmpty">\r
- <summary>\r
- Looks up a localized string similar to Value cannot be an empty string..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.AsMustBeInterface">\r
- <summary>\r
- Looks up a localized string similar to Can only add interfaces to the mock..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.CantSetReturnValueForVoid">\r
- <summary>\r
- Looks up a localized string similar to Can't set return value for void method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForDelegate">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorArgsForInterface">\r
- <summary>\r
- Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ConstructorNotFound">\r
- <summary>\r
- Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.EventNofFound">\r
- <summary>\r
- Looks up a localized string similar to Could not locate event for attach or detach method {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.FieldsNotSupported">\r
- <summary>\r
- Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockClass">\r
- <summary>\r
- Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.InvalidMockGetType">\r
- <summary>\r
- 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.\r
- Please cast the argument to one of the supported types: {1}.\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqBinaryOperatorNotSupported">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotSupported">\r
- <summary>\r
- Looks up a localized string similar to LINQ method '{0}' not supported..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.LinqMethodNotVirtual">\r
- <summary>\r
- 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}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MemberMissing">\r
- <summary>\r
- Looks up a localized string similar to Member {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MethodIsPublic">\r
- <summary>\r
- Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:\r
- mock.Setup(x => x.{1}());\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MockExceptionMessage">\r
- <summary>\r
- Looks up a localized string similar to {0} invocation failed with mock behavior {1}.\r
- {2}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanNCalls">\r
- <summary>\r
- Looks up a localized string similar to Expected only {0} calls to {1}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.MoreThanOneCall">\r
- <summary>\r
- Looks up a localized string similar to Expected only one call to {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeast">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtLeastOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at least once, but was never performed: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMost">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most {3} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsAtMostOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock at most once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenExclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsBetweenInclusive">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsExactly">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock exactly {2} times, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsNever">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock should never have been performed, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoMatchingCallsOnce">\r
- <summary>\r
- Looks up a localized string similar to {0}\r
- Expected invocation on the mock once, but was {4} times: {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.NoSetup">\r
- <summary>\r
- Looks up a localized string similar to All invocations on the mock must have a corresponding setup..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ObjectInstanceNotMock">\r
- <summary>\r
- Looks up a localized string similar to Object instance was not created by Moq..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.OutExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Out expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyGetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a getter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyMissing">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not exist..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotReadable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is write-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertyNotWritable">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} is read-only..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.PropertySetNotFound">\r
- <summary>\r
- Looks up a localized string similar to Property {0}.{1} does not have a setter..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RaisedUnassociatedEvent">\r
- <summary>\r
- 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..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.RefExpressionMustBeConstantValue">\r
- <summary>\r
- Looks up a localized string similar to Ref expression must evaluate to a constant value..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.ReturnValueRequired">\r
- <summary>\r
- Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupLambda">\r
- <summary>\r
- Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNever">\r
- <summary>\r
- Looks up a localized string similar to Invocation {0} should not have been made..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a method invocation: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotProperty">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property access: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupNotSetter">\r
- <summary>\r
- Looks up a localized string similar to Expression is not a property setter invocation..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonMemberMethod">\r
- <summary>\r
- Looks up a localized string similar to Expression references a method that does not belong to the mocked object: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.SetupOnNonOverridableMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid setup on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotImplementInterface">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not implement required interface {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.TypeNotInheritFromType">\r
- <summary>\r
- Looks up a localized string similar to Type {0} does not from required type {1}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnexpectedPublicProperty">\r
- <summary>\r
- Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:\r
- mock.Setup(x => x.{1}).Returns(value);\r
- mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one\r
- mock.SetupSet(x => x.{1}).Callback(callbackDelegate);\r
- .\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedExpression">\r
- <summary>\r
- Looks up a localized string similar to Unsupported expression: {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateExpression">\r
- <summary>\r
- Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedIntermediateType">\r
- <summary>\r
- 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}..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMatcherParamsForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedMember">\r
- <summary>\r
- Looks up a localized string similar to Member {0} is not supported for protected mocking..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.UnsupportedNonStaticMatcherForSetter">\r
- <summary>\r
- Looks up a localized string similar to Setter expression can only use static custom matchers..\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerficationFailed">\r
- <summary>\r
- Looks up a localized string similar to The following setups were not matched:\r
- {0}.\r
- </summary>\r
- </member>\r
- <member name="P:Moq.Properties.Resources.VerifyOnNonVirtualMember">\r
- <summary>\r
- Looks up a localized string similar to Invalid verify on a non-virtual (overridable in VB) member: {0}.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.IProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <summary>\r
- Gets an autogenerated interface with a method on it that matches the signature of the specified\r
- <paramref name="delegateType"/>.\r
- </summary>\r
- <remarks>\r
- Such an interface can then be mocked, and a delegate pointed at the method on the mocked instance.\r
- This is how we support delegate mocking. The factory caches such interfaces and reuses them\r
- for repeated requests for the same delegate type.\r
- </remarks>\r
- <param name="delegateType">The delegate type for which an interface is required.</param>\r
- <param name="delegateInterfaceMethod">The method on the autogenerated interface.</param>\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.CreateProxy(System.Type,Moq.Proxy.ICallInterceptor,System.Type[],System.Object[])">\r
- <inheritdoc />\r
- </member>\r
- <member name="M:Moq.Proxy.CastleProxyFactory.GetDelegateProxyInterface(System.Type,System.Reflection.MethodInfo@)">\r
- <inheritdoc />\r
- </member>\r
- <member name="T:Moq.Proxy.ProxyMethodHook">\r
- <summary>\r
- Hook used to tells Castle which methods to proxy in mocked classes.\r
- \r
- Here we proxy the default methods Castle suggests (everything Object's methods)\r
- plus Object.ToString(), so we can give mocks useful default names.\r
- \r
- This is required to allow Moq to mock ToString on proxy *class* implementations.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Proxy.ProxyMethodHook.ShouldInterceptMethod(System.Type,System.Reflection.MethodInfo)">\r
- <summary>\r
- Extends AllMethodsHook.ShouldInterceptMethod to also intercept Object.ToString().\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Proxy.InterfaceProxy">\r
- <summary>\r
- <para>The base class used for all our interface-inheriting proxies, which overrides the default\r
- Object.ToString() behavior, to route it via the mock by default, unless overriden by a\r
- real implementation.</para>\r
- \r
- <para>This is required to allow Moq to mock ToString on proxy *interface* implementations.</para>\r
- </summary>\r
- <remarks>\r
- <para><strong>This is internal to Moq and should not be generally used.</strong></para>\r
- \r
- <para>Unfortunately it must be public, due to cross-assembly visibility issues with reflection, \r
- see github.com/Moq/moq4/issues/98 for details.</para>\r
- </remarks>\r
- </member>\r
- <member name="M:Moq.Proxy.InterfaceProxy.ToString">\r
- <summary>\r
- Overrides the default ToString implementation to instead find the mock for this mock.Object,\r
- and return MockName + '.Object' as the mocked object's ToString, to make it easy to relate\r
- mocks and mock object instances in error messages.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Range">\r
- <summary>\r
- Kind of range to use in a filter specified through \r
- <see cref="M:Moq.It.IsInRange``1(``0,``0,Moq.Range)"/>.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Inclusive">\r
- <summary>\r
- The range includes the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="F:Moq.Range.Exclusive">\r
- <summary>\r
- The range does not include the <c>to</c> and \r
- <c>from</c> values.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.SequenceExtensions">\r
- <summary>\r
- Helper for sequencing return values in the same method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.SequenceExtensions.SetupSequence``2(Moq.Mock{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})">\r
- <summary>\r
- Return a sequence of values, once per call.\r
- </summary>\r
- </member>\r
- <member name="T:Moq.Times">\r
- <summary>\r
- Defines the number of invocations allowed by a mocked method.\r
- </summary>\r
- </member>\r
- <member name="M:Moq.Times.AtLeast(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> times as minimum.\r
- </summary><param name="callCount">The minimun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtLeastOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as minimum.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMost(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked <paramref name="callCount"/> time as maximun.\r
- </summary><param name="callCount">The maximun number of times.</param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.AtMostOnce">\r
- <summary>\r
- Specifies that a mocked method should be invoked one time as maximun.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Between(System.Int32,System.Int32,Moq.Range)">\r
- <summary>\r
- Specifies that a mocked method should be invoked between <paramref name="callCountFrom"/> and\r
- <paramref name="callCountTo"/> times.\r
- </summary><param name="callCountFrom">The minimun number of times.</param><param name="callCountTo">The maximun number of times.</param><param name="rangeKind">\r
- The kind of range. See <see cref="T:Moq.Range"/>.\r
- </param><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Exactly(System.Int32)">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly <paramref name="callCount"/> times.\r
- </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>\r
- </member>\r
- <member name="M:Moq.Times.Never">\r
- <summary>\r
- Specifies that a mocked method should not be invoked.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Once">\r
- <summary>\r
- Specifies that a mocked method should be invoked exactly one time.\r
- </summary><returns>An object defining the allowed number of invocations.</returns>\r
- </member>\r
- <member name="M:Moq.Times.Equals(System.Object)">\r
- <summary>\r
- Determines whether the specified <see cref="T:System.Object"/> is equal to this instance.\r
- </summary><param name="obj">\r
- The <see cref="T:System.Object"/> to compare with this instance.\r
- </param><returns>\r
- <c>true</c> if the specified <see cref="T:System.Object"/> is equal to this instance; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.GetHashCode">\r
- <summary>\r
- Returns a hash code for this instance.\r
- </summary><returns>\r
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Equality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have the same value.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is the same as the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- <member name="M:Moq.Times.op_Inequality(Moq.Times,Moq.Times)">\r
- <summary>\r
- Determines whether two specified <see cref="T:Moq.Times"/> objects have different values.\r
- </summary><param name="left">\r
- The first <see cref="T:Moq.Times"/>.\r
- </param><param name="right">\r
- The second <see cref="T:Moq.Times"/>.\r
- </param><returns>\r
- <c>true</c> if the value of left is different from the value of right; otherwise, <c>false</c>.\r
- </returns>\r
- </member>\r
- </members>\r
-</doc>\r
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>\r
-<repositories>\r
- <repository path="..\KancolleSniffer.Test\packages.config" />\r
-</repositories>
\ No newline at end of file