diff --git a/Spring.build b/Spring.build
index 096a6def..9cbbbe07 100644
--- a/Spring.build
+++ b/Spring.build
@@ -131,6 +131,8 @@ Commandline Examples:
+
+
+
+
+
+
+
+ Moq
+
+
+
+
+
+
+
+
+
+
+
+
+ Base class for mocks and static helper class with methods that
+ apply to mocked objects, such as to
+ retrieve a from an object instance.
+
+
+
+
+ Helper interface used to hide the base
+ members from the fluent API to make it much cleaner
+ in Visual Studio intellisense.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Retrieves the mock object for the given object instance.
+
+ Type of the mock to retrieve. Can be omitted as it's inferred
+ from the object instance passed in as the instance.
+ The instance of the mocked object.The mock associated with the mocked object.
+ The received instance
+ was not created by Moq.
+
+ The following example shows how to add a new setup to an object
+ instance which is not the original but rather
+ the object associated with it:
+
+ // Typed instance, not the mock, is retrieved from some test API.
+ HttpContextBase context = GetMockContext();
+
+ // context.Request is the typed object from the "real" API
+ // so in order to add a setup to it, we need to get
+ // the mock that "owns" it
+ Mock<HttpRequestBase> request = Mock.Get(context.Request);
+ mock.Setup(req => req.AppRelativeCurrentExecutionFilePath)
+ .Returns(tempUrl);
+
+
+
+
+
+ Returns the mocked object value.
+
+
+
+
+ Verifies that all verifiable expectations have been met.
+
+ This example sets up an expectation and marks it as verifiable. After
+ the mock is used, a Verify() call is issued on the mock
+ to ensure the method in the setup was invoked:
+
+ var mock = new Mock<IWarehouse>();
+ this.Setup(x => x.HasInventory(TALISKER, 50)).Verifiable().Returns(true);
+ ...
+ // other test code
+ ...
+ // Will throw if the test code has didn't call HasInventory.
+ this.Verify();
+
+ Not all verifiable expectations were met.
+
+
+
+ Verifies all expectations regardless of whether they have
+ been flagged as verifiable.
+
+ This example sets up an expectation without marking it as verifiable. After
+ the mock is used, a call is issued on the mock
+ to ensure that all expectations are met:
+
+ var mock = new Mock<IWarehouse>();
+ this.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
+ ...
+ // other test code
+ ...
+ // Will throw if the test code has didn't call HasInventory, even
+ // that expectation was not marked as verifiable.
+ this.VerifyAll();
+
+ At least one expectation was not met.
+
+
+
+ Gets the interceptor target for the given expression and root mock,
+ building the intermediate hierarchy of mock objects if necessary.
+
+
+
+
+ Raises the associated event with the given
+ event argument data.
+
+
+
+
+ Raises the associated event with the given
+ event argument data.
+
+
+
+
+ Adds an interface implementation to the mock,
+ allowing setups to be specified for it.
+
+ This method can only be called before the first use
+ of the mock property, at which
+ point the runtime type has already been generated
+ and no more interfaces can be added to it.
+
+ Also, must be an
+ interface and not a class, which must be specified
+ when creating the mock instead.
+
+
+ The mock type
+ has already been generated by accessing the property.
+
+ The specified
+ is not an interface.
+
+ The following example creates a mock for the main interface
+ and later adds to it to verify
+ it's called by the consumer code:
+
+ var mock = new Mock<IProcessor>();
+ mock.Setup(x => x.Execute("ping"));
+
+ // add IDisposable interface
+ var disposable = mock.As<IDisposable>();
+ disposable.Setup(d => d.Dispose()).Verifiable();
+
+ Type of interface to cast the mock to.
+
+
+
+ Behavior of the mock, according to the value set in the constructor.
+
+
+
+
+ Whether the base member virtual implementation will be called
+ for mocked classes if no setup is matched. Defaults to .
+
+
+
+
+ Specifies the behavior to use when returning default values for
+ unexpected invocations on loose mocks.
+
+
+
+
+ Gets the mocked object instance.
+
+
+
+
+ Retrieves the type of the mocked object, its generic type argument.
+ This is used in the auto-mocking of hierarchy access.
+
+
+
+
+ Specifies the class that will determine the default
+ value to return when invocations are made that
+ have no setups and need to return a default
+ value (for loose mocks).
+
+
+
+
+ Exposes the list of extra interfaces implemented by the mock.
+
+
+
+
+ Provides a mock implementation of .
+
+ Any interface type can be used for mocking, but for classes, only abstract and virtual members can be mocked.
+
+ The behavior of the mock with regards to the setups and the actual calls is determined
+ by the optional that can be passed to the
+ constructor.
+
+ Type to mock, which can be an interface or a class.
+ The following example shows establishing setups with specific values
+ for method invocations:
+
+ // Arrange
+ var order = new Order(TALISKER, 50);
+ var mock = new Mock<IWarehouse>();
+
+ mock.Setup(x => x.HasInventory(TALISKER, 50)).Returns(true);
+
+ // Act
+ order.Fill(mock.Object);
+
+ // Assert
+ Assert.True(order.IsFilled);
+
+ The following example shows how to use the class
+ to specify conditions for arguments instead of specific values:
+
+ // Arrange
+ var order = new Order(TALISKER, 50);
+ var mock = new Mock<IWarehouse>();
+
+ // shows how to expect a value within a range
+ mock.Setup(x => x.HasInventory(
+ It.IsAny<string>(),
+ It.IsInRange(0, 100, Range.Inclusive)))
+ .Returns(false);
+
+ // shows how to throw for unexpected calls.
+ mock.Setup(x => x.Remove(
+ It.IsAny<string>(),
+ It.IsAny<int>()))
+ .Throws(new InvalidOperationException());
+
+ // Act
+ order.Fill(mock.Object);
+
+ // Assert
+ Assert.False(order.IsFilled);
+
+
+
+
+
+ Ctor invoked by AsTInterface exclusively.
+
+
+
+
+ Initializes an instance of the mock with default behavior.
+
+ var mock = new Mock<IFormatProvider>();
+
+
+
+
+ Initializes an instance of the mock with default behavior and with
+ the given constructor arguments for the class. (Only valid when is a class)
+
+ The mock will try to find the best match constructor given the constructor arguments, and invoke that
+ to initialize the instance. This applies only for classes, not interfaces.
+
+ var mock = new Mock<MyProvider>(someArgument, 25);
+ Optional constructor arguments if the mocked type is a class.
+
+
+
+ Initializes an instance of the mock with the specified behavior.
+
+ var mock = new Mock<IFormatProvider>(MockBehavior.Relaxed);
+ Behavior of the mock.
+
+
+
+ Initializes an instance of the mock with a specific behavior with
+ the given constructor arguments for the class.
+
+ The mock will try to find the best match constructor given the constructor arguments, and invoke that
+ to initialize the instance. This applies only to classes, not interfaces.
+
+ var mock = new Mock<MyProvider>(someArgument, 25);
+ Behavior of the mock.Optional constructor arguments if the mocked type is a class.
+
+
+
+ Returns the mocked object value.
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a void method.
+
+ If more than one setup is specified for the same method or property,
+ the latest one wins and is the one that will be executed.
+ Lambda expression that specifies the expected method invocation.
+
+ var mock = new Mock<IProcessor>();
+ mock.Setup(x => x.Execute("ping"));
+
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a value returning method.
+ Type of the return value. Typically omitted as it can be inferred from the expression.
+ If more than one setup is specified for the same method or property,
+ the latest one wins and is the one that will be executed.
+ Lambda expression that specifies the method invocation.
+
+ mock.Setup(x => x.HasInventory("Talisker", 50)).Returns(true);
+
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a property getter.
+
+ If more than one setup is set for the same property getter,
+ the latest one wins and is the one that will be executed.
+ Type of the property. Typically omitted as it can be inferred from the expression.Lambda expression that specifies the property getter.
+
+ mock.SetupGet(x => x.Suspended)
+ .Returns(true);
+
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a property setter.
+
+ If more than one setup is set for the same property setter,
+ the latest one wins and is the one that will be executed.
+
+ This overloads allows the use of a callback already
+ typed for the property type.
+
+ Type of the property. Typically omitted as it can be inferred from the expression.The Lambda expression that sets a property to a value.
+
+ mock.SetupSet(x => x.Suspended = true);
+
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a property setter.
+
+ If more than one setup is set for the same property setter,
+ the latest one wins and is the one that will be executed.
+ Lambda expression that sets a property to a value.
+
+ mock.SetupSet(x => x.Suspended = true);
+
+
+
+
+
+ Specifies that the given property should have "property behavior",
+ meaning that setting its value will cause it to be saved and
+ later returned when the property is requested. (this is also
+ known as "stubbing").
+
+ Type of the property, inferred from the property
+ expression (does not need to be specified).
+ Property expression to stub.
+ If you have an interface with an int property Value, you might
+ stub it using the following straightforward call:
+
+ var mock = new Mock<IHaveValue>();
+ mock.Stub(v => v.Value);
+
+ After the Stub call has been issued, setting and
+ retrieving the object value will behave as expected:
+
+ IHaveValue v = mock.Object;
+
+ v.Value = 5;
+ Assert.Equal(5, v.Value);
+
+
+
+
+
+ Specifies that the given property should have "property behavior",
+ meaning that setting its value will cause it to be saved and
+ later returned when the property is requested. This overload
+ allows setting the initial value for the property. (this is also
+ known as "stubbing").
+
+ Type of the property, inferred from the property
+ expression (does not need to be specified).
+ Property expression to stub.Initial value for the property.
+ If you have an interface with an int property Value, you might
+ stub it using the following straightforward call:
+
+ var mock = new Mock<IHaveValue>();
+ mock.SetupProperty(v => v.Value, 5);
+
+ After the SetupProperty call has been issued, setting and
+ retrieving the object value will behave as expected:
+
+ IHaveValue v = mock.Object;
+ // Initial value was stored
+ Assert.Equal(5, v.Value);
+
+ // New value set which changes the initial value
+ v.Value = 6;
+ Assert.Equal(6, v.Value);
+
+
+
+
+
+ Specifies that the all properties on the mock should have "property behavior",
+ meaning that setting its value will cause it to be saved and
+ later returned when the property is requested. (this is also
+ known as "stubbing"). The default value for each property will be the
+ one generated as specified by the property for the mock.
+
+ If the mock is set to ,
+ the mocked default values will also get all properties setup recursively.
+
+
+
+
+ Verifies that a specific invocation matching the given expression was performed on the mock. Use
+ in conjuntion with the default .
+
+ This example assumes that the mock has been used, and later we want to verify that a given
+ invocation with specific parameters was performed:
+
+ var mock = new Mock<IProcessor>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't call Execute with a "ping" string argument.
+ mock.Verify(proc => proc.Execute("ping"));
+
+ The invocation was not performed on the mock.Expression to verify.
+
+
+
+ Verifies that a specific invocation matching the given expression was performed on the mock. Use
+ in conjuntion with the default .
+
+ The invocation was not call the times specified by
+ .
+ Expression to verify.The number of times a method is allowed to be called.
+
+
+
+ Verifies that a specific invocation matching the given expression was performed on the mock,
+ specifying a failure error message. Use in conjuntion with the default
+ .
+
+ This example assumes that the mock has been used, and later we want to verify that a given
+ invocation with specific parameters was performed:
+
+ var mock = new Mock<IProcessor>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't call Execute with a "ping" string argument.
+ mock.Verify(proc => proc.Execute("ping"));
+
+ The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.
+
+
+
+ Verifies that a specific invocation matching the given expression was performed on the mock,
+ specifying a failure error message. Use in conjuntion with the default
+ .
+
+ The invocation was not call the times specified by
+ .
+ Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.
+
+
+
+ Verifies that a specific invocation matching the given expression was performed on the mock. Use
+ in conjuntion with the default .
+
+ This example assumes that the mock has been used, and later we want to verify that a given
+ invocation with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't call HasInventory.
+ mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50));
+
+ The invocation was not performed on the mock.Expression to verify.Type of return value from the expression.
+
+
+
+ Verifies that a specific invocation matching the given
+ expression was performed on the mock. Use in conjuntion
+ with the default .
+
+ The invocation was not call the times specified by
+ .
+ Expression to verify.The number of times a method is allowed to be called.Type of return value from the expression.
+
+
+
+ Verifies that a specific invocation matching the given
+ expression was performed on the mock, specifying a failure
+ error message.
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given invocation
+ with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't call HasInventory.
+ mock.Verify(warehouse => warehouse.HasInventory(TALISKER, 50), "When filling orders, inventory has to be checked");
+
+ The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.Type of return value from the expression.
+
+
+
+ Verifies that a specific invocation matching the given
+ expression was performed on the mock, specifying a failure
+ error message.
+
+ The invocation was not call the times specified by
+ .
+ Expression to verify.The number of times a method is allowed to be called.Message to show if verification fails.Type of return value from the expression.
+
+
+
+ Verifies that a property was read on the mock.
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given property
+ was retrieved from it:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't retrieve the IsClosed property.
+ mock.VerifyGet(warehouse => warehouse.IsClosed);
+
+ The invocation was not performed on the mock.Expression to verify.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+
+ Verifies that a property was read on the mock.
+
+ The invocation was not call the times specified by
+ .
+ The number of times a method is allowed to be called.Expression to verify.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+
+ Verifies that a property was read on the mock, specifying a failure
+ error message.
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given property
+ was retrieved from it:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't retrieve the IsClosed property.
+ mock.VerifyGet(warehouse => warehouse.IsClosed);
+
+ The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+
+ Verifies that a property was read on the mock, specifying a failure
+ error message.
+
+ The invocation was not call the times specified by
+ .
+ The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+
+ Verifies that a property was set on the mock.
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given property
+ was set on it:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed = true);
+
+ The invocation was not performed on the mock.Expression to verify.
+
+
+
+ Verifies that a property was set on the mock.
+
+ The invocation was not call the times specified by
+ .
+ The number of times a method is allowed to be called.Expression to verify.
+
+
+
+ Verifies that a property was set on the mock, specifying
+ a failure message.
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given property
+ was set on it:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed = true, "Warehouse should always be closed after the action");
+
+ The invocation was not performed on the mock.Expression to verify.Message to show if verification fails.
+
+
+
+ Verifies that a property was set on the mock, specifying
+ a failure message.
+
+ The invocation was not call the times specified by
+ .
+ The number of times a method is allowed to be called.Expression to verify.Message to show if verification fails.
+
+
+
+ Raises the event referenced in using
+ the given argument.
+
+ The argument is
+ invalid for the target event invocation, or the is
+ not an event attach or detach expression.
+
+ The following example shows how to raise a event:
+
+ var mock = new Mock<IViewModel>();
+
+ mock.Raise(x => x.PropertyChanged -= null, new PropertyChangedEventArgs("Name"));
+
+
+ This example shows how to invoke an event with a custom event arguments
+ class in a view that will cause its corresponding presenter to
+ react by changing its state:
+
+ var mockView = new Mock<IOrdersView>();
+ var presenter = new OrdersPresenter(mockView.Object);
+
+ // Check that the presenter has no selection by default
+ Assert.Null(presenter.SelectedOrder);
+
+ // Raise the event with a specific arguments data
+ mockView.Raise(v => v.SelectionChanged += null, new OrderEventArgs { Order = new Order("moq", 500) });
+
+ // Now the presenter reacted to the event, and we have a selected order
+ Assert.NotNull(presenter.SelectedOrder);
+ Assert.Equal("moq", presenter.SelectedOrder.ProductName);
+
+
+
+
+
+ Raises the event referenced in using
+ the given argument for a non-EventHandler typed event.
+
+ The arguments are
+ invalid for the target event invocation, or the is
+ not an event attach or detach expression.
+
+ The following example shows how to raise a custom event that does not adhere to
+ the standard EventHandler:
+
+ var mock = new Mock<IViewModel>();
+
+ mock.Raise(x => x.MyEvent -= null, "Name", bool, 25);
+
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Exposes the mocked object instance.
+
+
+
+
+ Allows setups to be specified for protected members by using their
+ name as a string, rather than strong-typing them which is not possible
+ due to their visibility.
+
+
+
+
+ Specifies a setup for a void method invocation with the given
+ , optionally specifying arguments for the method call.
+
+ The name of the void method to be invoked.
+ The optional arguments for the invocation. If argument matchers are used,
+ remember to use rather than .
+
+
+
+ Specifies a setup for an invocation on a property or a non void method with the given
+ , optionally specifying arguments for the method call.
+
+ The name of the method or property to be invoked.
+ The optional arguments for the invocation. If argument matchers are used,
+ remember to use rather than .
+ The return type of the method or property.
+
+
+
+ Specifies a setup for an invocation on a property getter with the given
+ .
+
+ The name of the property.
+ The type of the property.
+
+
+
+ Specifies a setup for an invocation on a property setter with the given
+ .
+
+ The name of the property.
+ The property value. If argument matchers are used,
+ remember to use rather than .
+ The type of the property.
+
+
+
+ Specifies a verify for a void method with the given ,
+ optionally specifying arguments for the method call. Use in conjuntion with the default
+ .
+
+ The invocation was not call the times specified by
+ .
+ The name of the void method to be verified.
+ The number of times a method is allowed to be called.
+ The optional arguments for the invocation. If argument matchers are used,
+ remember to use rather than .
+
+
+
+ Specifies a verify for an invocation on a property or a non void method with the given
+ , optionally specifying arguments for the method call.
+
+ The invocation was not call the times specified by
+ .
+ The name of the method or property to be invoked.
+ The optional arguments for the invocation. If argument matchers are used,
+ remember to use rather than .
+ The number of times a method is allowed to be called.
+ The type of return value from the expression.
+
+
+
+ Specifies a verify for an invocation on a property getter with the given
+ .
+ The invocation was not call the times specified by
+ .
+
+ The name of the property.
+ The number of times a method is allowed to be called.
+ The type of the property.
+
+
+
+ Specifies a setup for an invocation on a property setter with the given
+ .
+
+ The invocation was not call the times specified by
+ .
+ The name of the property.
+ The number of times a method is allowed to be called.
+ The property value.
+ The type of the property. If argument matchers are used,
+ remember to use rather than .
+
+
+
+ Options to customize the behavior of the mock.
+
+
+
+
+ Causes the mock to always throw
+ an exception for invocations that don't have a
+ corresponding setup.
+
+
+
+
+ Will never throw exceptions, returning default
+ values when necessary (null for reference types,
+ zero for value types or empty enumerables and arrays).
+
+
+
+
+ Default mock behavior, which equals .
+
+
+
+
+ Defines the Throws verb.
+
+
+
+
+ Specifies the exception to throw when the method is invoked.
+
+ Exception instance to throw.
+
+ This example shows how to throw an exception when the method is
+ invoked with an empty string argument:
+
+ mock.Setup(x => x.Execute(""))
+ .Throws(new ArgumentException());
+
+
+
+
+
+ Specifies the type of exception to throw when the method is invoked.
+
+ Type of exception to instantiate and throw when the setup is matched.
+
+ This example shows how to throw an exception when the method is
+ invoked with an empty string argument:
+
+ mock.Setup(x => x.Execute(""))
+ .Throws<ArgumentException>();
+
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines occurrence members to constraint setups.
+
+
+
+
+ The expected invocation can happen at most once.
+
+
+
+ var mock = new Mock<ICommand>();
+ mock.Setup(foo => foo.Execute("ping"))
+ .AtMostOnce();
+
+
+
+
+
+ The expected invocation can happen at most specified number of times.
+
+ The number of times to accept calls.
+
+
+ var mock = new Mock<ICommand>();
+ mock.Setup(foo => foo.Execute("ping"))
+ .AtMost( 5 );
+
+
+
+
+
+ Defines the Verifiable verb.
+
+
+
+
+ Marks the expectation as verifiable, meaning that a call
+ to will check if this particular
+ expectation was met.
+
+
+ The following example marks the expectation as verifiable:
+
+ mock.Expect(x => x.Execute("ping"))
+ .Returns(true)
+ .Verifiable();
+
+
+
+
+
+ Marks the expectation as verifiable, meaning that a call
+ to will check if this particular
+ expectation was met, and specifies a message for failures.
+
+
+ The following example marks the expectation as verifiable:
+
+ mock.Expect(x => x.Execute("ping"))
+ .Returns(true)
+ .Verifiable("Ping should be executed always!");
+
+
+
+
+
+ Kind of range to use in a filter specified through
+ .
+
+
+
+
+ The range includes the to and
+ from values.
+
+
+
+
+ The range does not include the to and
+ from values.
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Callback verb for property setter setups.
+
+ Type of the property.
+
+
+
+ Specifies a callback to invoke when the property is set that receives the
+ property value being set.
+
+ Callback method to invoke.
+
+ Invokes the given callback with the property value being set.
+
+ mock.SetupSet(x => x.Suspended)
+ .Callback((bool state) => Console.WriteLine(state));
+
+
+
+
+
+ Provides partial evaluation of subtrees, whenever they can be evaluated locally.
+
+ Matt Warren: http://blogs.msdn.com/mattwar
+ Documented by InSTEDD: http://www.instedd.org
+
+
+
+ Performs evaluation and replacement of independent sub-trees
+
+ The root of the expression tree.
+ A function that decides whether a given expression
+ node can be part of the local function.
+ A new tree with sub-trees evaluated and replaced.
+
+
+
+ Performs evaluation and replacement of independent sub-trees
+
+ The root of the expression tree.
+ A new tree with sub-trees evaluated and replaced.
+
+
+
+ Evaluates and replaces sub-trees when first candidate is reached (top-down)
+
+
+
+
+ Performs bottom-up analysis to determine which nodes can possibly
+ be part of an evaluated sub-tree.
+
+
+
+
+ We need this non-generics base class so that
+ we can use from
+ generic code.
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Callback verb and overloads for callbacks on
+ setups that return a value.
+
+ Mocked type.
+ Type of the return value of the setup.
+
+
+
+ Specifies a callback to invoke when the method is called.
+
+ The callback method to invoke.
+
+ The following example specifies a callback to set a boolean value that can be used later:
+
+ var called = false;
+ mock.Setup(x => x.Execute())
+ .Callback(() => called = true)
+ .Returns(true);
+
+ Note that in the case of value-returning methods, after the Callback
+ call you can still specify the return value.
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the argument of the invoked method.
+ Callback method to invoke.
+
+ Invokes the given callback with the concrete invocation argument value.
+
+ Notice how the specific string argument is retrieved by simply declaring
+ it as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(It.IsAny<string>()))
+ .Callback(command => Console.WriteLine(command))
+ .Returns(true);
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2) => Console.WriteLine(arg1 + arg2));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3) => Console.WriteLine(arg1 + arg2 + arg3));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5, arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original
+ arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The type of the sixteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Returns verb.
+
+ Mocked type.
+ Type of the return value from the expression.
+
+
+
+ Specifies the value to return.
+
+ The value to return, or .
+
+ Return a true value from the method call:
+
+ mock.Setup(x => x.Execute("ping"))
+ .Returns(true);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method.
+
+ The function that will calculate the return value.
+
+ Return a calculated value when the method is called:
+
+ mock.Setup(x => x.Execute("ping"))
+ .Returns(() => returnValues[0]);
+
+ The lambda expression to retrieve the return value is lazy-executed,
+ meaning that its value may change depending on the moment the method
+ is executed and the value the returnValues array has at
+ that moment.
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the argument of the invoked method.
+ The function that will calculate the return value.
+
+ Return a calculated value which is evaluated lazily at the time of the invocation.
+
+ The lookup list can change between invocations and the setup
+ will return different values accordingly. Also, notice how the specific
+ string argument is retrieved by simply declaring it as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(It.IsAny<string>()))
+ .Returns((string command) => returnValues[command]);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2) => arg1 + arg2);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2, string arg3) => arg1 + arg2 + arg3);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2, string arg3, string arg4) => arg1 + arg2 + arg3 + arg4);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2, string arg3, string arg4, string arg5) => arg1 + arg2 + arg3 + arg4 + arg5);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .Returns((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Specifies a function that will calculate the value to return from the method,
+ retrieving the arguments for the invocation.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The type of the sixteenth argument of the invoked method.
+ The function that will calculate the return value.
+ Returns a calculated value which is evaluated lazily at the time of the invocation.
+
+
+ The return value is calculated from the value of the actual method invocation arguments.
+ Notice how the arguments are retrieved by simply declaring them as part of the lambda
+ expression:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>(),
+ It.IsAny<int>()))
+ .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);
+
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Callback verb for property getter setups.
+
+
+ Mocked type.
+ Type of the property.
+
+
+
+ Specifies a callback to invoke when the property is retrieved.
+
+ Callback method to invoke.
+
+ Invokes the given callback with the property value being set.
+
+ mock.SetupGet(x => x.Suspended)
+ .Callback(() => called = true)
+ .Returns(true);
+
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Returns verb for property get setups.
+
+ Mocked type.
+ Type of the property.
+
+
+
+ Specifies the value to return.
+
+ The value to return, or .
+
+ Return a true value from the property getter call:
+
+ mock.SetupGet(x => x.Suspended)
+ .Returns(true);
+
+
+
+
+
+ Specifies a function that will calculate the value to return for the property.
+
+ The function that will calculate the return value.
+
+ Return a calculated value when the property is retrieved:
+
+ mock.SetupGet(x => x.Suspended)
+ .Returns(() => returnValues[0]);
+
+ The lambda expression to retrieve the return value is lazy-executed,
+ meaning that its value may change depending on the moment the property
+ is retrieved and the value the returnValues array has at
+ that moment.
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Defines the Callback verb and overloads.
+
+
+
+
+ Specifies a callback to invoke when the method is called.
+
+ The callback method to invoke.
+
+ The following example specifies a callback to set a boolean
+ value that can be used later:
+
+ var called = false;
+ mock.Setup(x => x.Execute())
+ .Callback(() => called = true);
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The argument type of the invoked method.
+ The callback method to invoke.
+
+ Invokes the given callback with the concrete invocation argument value.
+
+ Notice how the specific string argument is retrieved by simply declaring
+ it as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(It.IsAny<string>()))
+ .Callback((string command) => Console.WriteLine(command));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2) => Console.WriteLine(arg1 + arg2));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2, string arg3) => Console.WriteLine(arg1 + arg2 + arg3));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2, string arg3, string arg4) => Console.WriteLine(arg1 + arg2 + arg3 + arg4));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2, string arg3, string arg4, string arg5) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .Callback((string arg1, string arg2, string arg3, string arg4, string arg5, string arg6, string arg7) => Console.WriteLine(arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Specifies a callback to invoke when the method is called that receives the original arguments.
+
+ The type of the first argument of the invoked method.
+ The type of the second argument of the invoked method.
+ The type of the third argument of the invoked method.
+ The type of the fourth argument of the invoked method.
+ The type of the fifth argument of the invoked method.
+ The type of the sixth argument of the invoked method.
+ The type of the seventh argument of the invoked method.
+ The type of the eighth argument of the invoked method.
+ The type of the nineth argument of the invoked method.
+ The type of the tenth argument of the invoked method.
+ The type of the eleventh argument of the invoked method.
+ The type of the twelfth argument of the invoked method.
+ The type of the thirteenth argument of the invoked method.
+ The type of the fourteenth argument of the invoked method.
+ The type of the fifteenth argument of the invoked method.
+ The type of the sixteenth argument of the invoked method.
+ The callback method to invoke.
+ A reference to interface.
+
+ Invokes the given callback with the concrete invocation arguments values.
+
+ Notice how the specific arguments are retrieved by simply declaring
+ them as part of the lambda expression for the callback:
+
+
+ mock.Setup(x => x.Execute(
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>(),
+ It.IsAny<string>()))
+ .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));
+
+
+
+
+
+ Defines the Raises verb.
+
+
+
+
+ Specifies the event that will be raised
+ when the setup is met.
+
+ An expression that represents an event attach or detach action.
+ The event arguments to pass for the raised event.
+
+ The following example shows how to raise an event when
+ the setup is met:
+
+ var mock = new Mock<IContainer>();
+
+ mock.Setup(add => add.Add(It.IsAny<string>(), It.IsAny<object>()))
+ .Raises(add => add.Added += null, EventArgs.Empty);
+
+
+
+
+
+ Specifies the event that will be raised
+ when the setup is matched.
+
+ An expression that represents an event attach or detach action.
+ A function that will build the
+ to pass when raising the event.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+ The type of the twelfth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+ The type of the twelfth argument received by the expected invocation.
+ The type of the thirteenth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+ The type of the twelfth argument received by the expected invocation.
+ The type of the thirteenth argument received by the expected invocation.
+ The type of the fourteenth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+ The type of the twelfth argument received by the expected invocation.
+ The type of the thirteenth argument received by the expected invocation.
+ The type of the fourteenth argument received by the expected invocation.
+ The type of the fifteenth argument received by the expected invocation.
+
+
+
+
+ Specifies the event that will be raised when the setup is matched.
+
+ The expression that represents an event attach or detach action.
+ The function that will build the
+ to pass when raising the event.
+ The type of the first argument received by the expected invocation.
+ The type of the second argument received by the expected invocation.
+ The type of the third argument received by the expected invocation.
+ The type of the fourth argument received by the expected invocation.
+ The type of the fifth argument received by the expected invocation.
+ The type of the sixth argument received by the expected invocation.
+ The type of the seventh argument received by the expected invocation.
+ The type of the eighth argument received by the expected invocation.
+ The type of the nineth argument received by the expected invocation.
+ The type of the tenth argument received by the expected invocation.
+ The type of the eleventh argument received by the expected invocation.
+ The type of the twelfth argument received by the expected invocation.
+ The type of the thirteenth argument received by the expected invocation.
+ The type of the fourteenth argument received by the expected invocation.
+ The type of the fifteenth argument received by the expected invocation.
+ The type of the sixteenth argument received by the expected invocation.
+
+
+
+
+ Specifies the custom event that will be raised
+ when the setup is matched.
+
+ An expression that represents an event attach or detach action.
+ The arguments to pass to the custom delegate (non EventHandler-compatible).
+
+
+
+ Defines the number of invocations allowed by a mocked method.
+
+
+
+
+ Specifies that a mocked method should be invoked times as minimum.
+ The minimun number of times.An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked one time as minimum.
+ An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked time as maximun.
+ The maximun number of times.An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked one time as maximun.
+ An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked between and
+ times.
+ The minimun number of times.The maximun number of times.
+ The kind of range. See .
+ An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked exactly times.
+ The times that a method or property can be called.An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should not be invoked.
+ An object defining the allowed number of invocations.
+
+
+
+ Specifies that a mocked method should be invoked exactly one time.
+ An object defining the allowed number of invocations.
+
+
+
+ Determines whether the specified is equal to this instance.
+
+ The to compare with this instance.
+
+ true if the specified is equal to this instance; otherwise, false.
+
+
+
+
+ Returns a hash code for this instance.
+
+ A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
+
+
+
+
+ Determines whether two specified objects have the same value.
+
+ The first .
+
+ The second .
+
+ true if the value of left is the same as the value of right; otherwise, false.
+
+
+
+
+ Determines whether two specified objects have different values.
+
+ The first .
+
+ The second .
+
+ true if the value of left is different from the value of right; otherwise, false.
+
+
+
+
+ Matcher to treat static functions as matchers.
+
+ mock.Setup(x => x.StringMethod(A.MagicString()));
+
+ pbulic static class A
+ {
+ [Matcher]
+ public static string MagicString() { return null; }
+ public static bool MagicString(string arg)
+ {
+ return arg == "magic";
+ }
+ }
+
+ Will success if: mock.Object.StringMethod("magic");
+ and fail with any other call.
+
+
+
+
+ A that returns an empty default value
+ for invocations that do not have setups or return values, with loose mocks.
+ This is the default behavior for a mock.
+
+
+
+
+ Interface to be implemented by classes that determine the
+ default value of non-expected invocations.
+
+
+
+
+ Provides a value for the given member and arguments.
+
+ The member to provide a default
+ value for.
+
+
+
+ Provides additional methods on mocks.
+
+
+ Provided as extension methods as they confuse the compiler
+ with the overloads taking Action.
+
+
+
+
+ Specifies a setup on the mocked type for a call to
+ to a property setter, regardless of its value.
+
+
+ If more than one setup is set for the same property setter,
+ the latest one wins and is the one that will be executed.
+
+ Type of the property. Typically omitted as it can be inferred from the expression.
+ Type of the mock.
+ The target mock for the setup.
+ Lambda expression that specifies the property setter.
+
+
+ mock.SetupSet(x => x.Suspended);
+
+
+
+ This method is not legacy, but must be on an extension method to avoid
+ confusing the compiler with the new Action syntax.
+
+
+
+
+ Verifies that a property has been set on the mock, regarless of its value.
+
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given invocation
+ with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed);
+
+
+ The invocation was not performed on the mock.
+ Expression to verify.
+ The mock instance.
+ Mocked type.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+ Verifies that a property has been set on the mock, specifying a failure
+ error message.
+
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given invocation
+ with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed);
+
+
+ The invocation was not performed on the mock.
+ Expression to verify.
+ Message to show if verification fails.
+ The mock instance.
+ Mocked type.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+ Verifies that a property has been set on the mock, regardless
+ of the value but only the specified number of times.
+
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given invocation
+ with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed);
+
+
+ The invocation was not performed on the mock.
+ The invocation was not call the times specified by
+ .
+ The mock instance.
+ Mocked type.
+ The number of times a method is allowed to be called.
+ Expression to verify.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+ Verifies that a property has been set on the mock, regardless
+ of the value but only the specified number of times, and specifying a failure
+ error message.
+
+
+ This example assumes that the mock has been used,
+ and later we want to verify that a given invocation
+ with specific parameters was performed:
+
+ var mock = new Mock<IWarehouse>();
+ // exercise mock
+ //...
+ // Will throw if the test code didn't set the IsClosed property.
+ mock.VerifySet(warehouse => warehouse.IsClosed);
+
+
+ The invocation was not performed on the mock.
+ The invocation was not call the times specified by
+ .
+ The mock instance.
+ Mocked type.
+ The number of times a method is allowed to be called.
+ Message to show if verification fails.
+ Expression to verify.
+ Type of the property to verify. Typically omitted as it can
+ be inferred from the expression's return type.
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Determines the way default values are generated
+ calculated for loose mocks.
+
+
+
+
+ Default behavior, which generates empty values for
+ value types (i.e. default(int)), empty array and
+ enumerables, and nulls for all other reference types.
+
+
+
+
+ Whenever the default value generated by
+ is null, replaces this value with a mock (if the type
+ can be mocked).
+
+
+ For sealed classes, a null value will be generated.
+
+
+
+
+ Implemented by all generated mock object instances.
+
+
+
+
+ Implemented by all generated mock object instances.
+
+
+
+
+ Reference the Mock that contains this as the mock.Object value.
+
+
+
+
+ Reference the Mock that contains this as the mock.Object value.
+
+
+
+
+ Marks a method as a matcher, which allows complete replacement
+ of the built-in class with your own argument
+ matching rules.
+
+
+ This feature has been deprecated in favor of the new
+ and simpler .
+
+
+ The argument matching is used to determine whether a concrete
+ invocation in the mock matches a given setup. This
+ matching mechanism is fully extensible.
+
+
+ There are two parts of a matcher: the compiler matcher
+ and the runtime matcher.
+
+ -
+ Compiler matcher
+ Used to satisfy the compiler requirements for the
+ argument. Needs to be a method optionally receiving any arguments
+ you might need for the matching, but with a return type that
+ matches that of the argument.
+
+ Let's say I want to match a lists of orders that contains
+ a particular one. I might create a compiler matcher like the following:
+
+
+ public static class Orders
+ {
+ [Matcher]
+ public static IEnumerable<Order> Contains(Order order)
+ {
+ return null;
+ }
+ }
+
+ Now we can invoke this static method instead of an argument in an
+ invocation:
+
+ var order = new Order { ... };
+ var mock = new Mock<IRepository<Order>>();
+
+ mock.Setup(x => x.Save(Orders.Contains(order)))
+ .Throws<ArgumentException>();
+
+ Note that the return value from the compiler matcher is irrelevant.
+ This method will never be called, and is just used to satisfy the
+ compiler and to signal Moq that this is not a method that we want
+ to be invoked at runtime.
+
+
+ -
+ Runtime matcher
+
+ The runtime matcher is the one that will actually perform evaluation
+ when the test is run, and is defined by convention to have the
+ same signature as the compiler matcher, but where the return
+ value is the first argument to the call, which contains the
+ object received by the actual invocation at runtime:
+
+ public static bool Contains(IEnumerable<Order> orders, Order order)
+ {
+ return orders.Contains(order);
+ }
+
+ At runtime, the mocked method will be invoked with a specific
+ list of orders. This value will be passed to this runtime
+ matcher as the first argument, while the second argument is the
+ one specified in the setup (x.Save(Orders.Contains(order))).
+
+ The boolean returned determines whether the given argument has been
+ matched. If all arguments to the expected method are matched, then
+ the setup matches and is evaluated.
+
+
+
+
+
+ Using this extensible infrastructure, you can easily replace the entire
+ set of matchers with your own. You can also avoid the
+ typical (and annoying) lengthy expressions that result when you have
+ multiple arguments that use generics.
+
+
+ The following is the complete example explained above:
+
+ public static class Orders
+ {
+ [Matcher]
+ public static IEnumerable<Order> Contains(Order order)
+ {
+ return null;
+ }
+
+ public static bool Contains(IEnumerable<Order> orders, Order order)
+ {
+ return orders.Contains(order);
+ }
+ }
+
+ And the concrete test using this matcher:
+
+ var order = new Order { ... };
+ var mock = new Mock<IRepository<Order>>();
+
+ mock.Setup(x => x.Save(Orders.Contains(order)))
+ .Throws<ArgumentException>();
+
+ // use mock, invoke Save, and have the matcher filter.
+
+
+
+
+
+ Exception thrown by mocks when setups are not matched,
+ the mock is not properly setup, etc.
+
+
+ A distinct exception type is provided so that exceptions
+ thrown by the mock can be differentiated in tests that
+ expect other exceptions to be thrown (i.e. ArgumentException).
+
+ Richer exception hierarchy/types are not provided as
+ tests typically should not catch or expect exceptions
+ from the mocks. These are typically the result of changes
+ in the tested class or its collaborators implementation, and
+ result in fixes in the mock setup so that they dissapear and
+ allow the test to pass.
+
+
+
+
+
+ Supports the serialization infrastructure.
+
+ Serialization information.
+ Streaming context.
+
+
+
+ Supports the serialization infrastructure.
+
+ Serialization information.
+ Streaming context.
+
+
+
+ Made internal as it's of no use for
+ consumers, but it's important for
+ our own tests.
+
+
+
+
+ Used by the mock factory to accumulate verification
+ failures.
+
+
+
+
+ Supports the serialization infrastructure.
+
+
+
+
+ Implements the actual interception and method invocation for
+ all mocks.
+
+
+
+
+ Get an eventInfo for a given event name. Search type ancestors depth first if necessary.
+
+ Name of the event, with the set_ or get_ prefix already removed
+
+
+
+ Given a type return all of its ancestors, both types and interfaces.
+
+ The type to find immediate ancestors of
+
+
+
+ Enables the Protected() method on ,
+ allowing setups to be set for protected members by using their
+ name as a string, rather than strong-typing them which is not possible
+ due to their visibility.
+
+
+
+
+ Enable protected setups for the mock.
+
+ Mocked object type. Typically omitted as it can be inferred from the mock instance.
+ The mock to set the protected setups on.
+
+
+
+ Ensures the given is not null.
+ Throws otherwise.
+
+
+
+
+ Ensures the given string is not null or empty.
+ Throws in the first case, or
+ in the latter.
+
+
+
+
+ Checks an argument to ensure it is in the specified range including the edges.
+
+ Type of the argument to check, it must be an type.
+
+ The expression containing the name of the argument.
+ The argument value to check.
+ The minimun allowed value for the argument.
+ The maximun allowed value for the argument.
+
+
+
+ Checks an argument to ensure it is in the specified range excluding the edges.
+
+ Type of the argument to check, it must be an type.
+
+ The expression containing the name of the argument.
+ The argument value to check.
+ The minimun allowed value for the argument.
+ The maximun allowed value for the argument.
+
+
+
+ Allows creation custom value matchers that can be used on setups and verification,
+ completely replacing the built-in class with your own argument
+ matching rules.
+
+
+
+
+ Provided for the sole purpose of rendering the delegate passed to the
+ matcher constructor if no friendly render lambda is provided.
+
+
+
+
+ Initializes the match with the condition that
+ will be checked in order to match invocation
+ values.
+ The condition to match against actual values.
+
+
+
+
+
+
+
+
+ This method is used to set an expression as the last matcher invoked,
+ which is used in the SetupSet to allow matchers in the prop = value
+ delegate expression. This delegate is executed in "fluent" mode in
+ order to capture the value being set, and construct the corresponding
+ methodcall.
+ This is also used in the MatcherFactory for each argument expression.
+ This method ensures that when we execute the delegate, we
+ also track the matcher that was invoked, so that when we create the
+ methodcall we build the expression using it, rather than the null/default
+ value returned from the actual invocation.
+
+
+
+
+ Allows creation custom value matchers that can be used on setups and verification,
+ completely replacing the built-in class with your own argument
+ matching rules.
+ Type of the value to match.
+ The argument matching is used to determine whether a concrete
+ invocation in the mock matches a given setup. This
+ matching mechanism is fully extensible.
+
+ Creating a custom matcher is straightforward. You just need to create a method
+ that returns a value from a call to with
+ your matching condition and optional friendly render expression:
+
+ public Order IsBigOrder()
+ {
+ return Match<Order>.Create(
+ o => o.GrandTotal >= 5000,
+ /* a friendly expression to render on failures */
+ () => IsBigOrder());
+ }
+
+ This method can be used in any mock setup invocation:
+
+ mock.Setup(m => m.Submit(IsBigOrder()).Throws<UnauthorizedAccessException>();
+
+ At runtime, Moq knows that the return value was a matcher and
+ evaluates your predicate with the actual value passed into your predicate.
+
+ Another example might be a case where you want to match a lists of orders
+ that contains a particular one. You might create matcher like the following:
+
+
+ public static class Orders
+ {
+ public static IEnumerable<Order> Contains(Order order)
+ {
+ return Match<IEnumerable<Order>>.Create(orders => orders.Contains(order));
+ }
+ }
+
+ Now we can invoke this static method instead of an argument in an
+ invocation:
+
+ var order = new Order { ... };
+ var mock = new Mock<IRepository<Order>>();
+
+ mock.Setup(x => x.Save(Orders.Contains(order)))
+ .Throws<ArgumentException>();
+
+
+
+
+
+ The first method call or member access will be the
+ last segment of the expression (depth-first traversal),
+ which is the one we have to Setup rather than FluentMock.
+ And the last one is the one we have to Mock.Get rather
+ than FluentMock.
+
+
+
+
+ A default implementation of IQueryable for use with QueryProvider
+
+
+
+
+ Utility factory class to use to construct multiple
+ mocks when consistent verification is
+ desired for all of them.
+
+
+ If multiple mocks will be created during a test, passing
+ the desired (if different than the
+ or the one
+ passed to the factory constructor) and later verifying each
+ mock can become repetitive and tedious.
+
+ This factory class helps in that scenario by providing a
+ simplified creation of multiple mocks with a default
+ (unless overriden by calling
+ ) and posterior verification.
+
+
+
+ The following is a straightforward example on how to
+ create and automatically verify strict mocks using a :
+
+ var factory = new MockFactory(MockBehavior.Strict);
+
+ var foo = factory.Create<IFoo>();
+ var bar = factory.Create<IBar>();
+
+ // no need to call Verifiable() on the setup
+ // as we'll be validating all of them anyway.
+ foo.Setup(f => f.Do());
+ bar.Setup(b => b.Redo());
+
+ // exercise the mocks here
+
+ factory.VerifyAll();
+ // At this point all setups are already checked
+ // and an optional MockException might be thrown.
+ // Note also that because the mocks are strict, any invocation
+ // that doesn't have a matching setup will also throw a MockException.
+
+ The following examples shows how to setup the factory
+ to create loose mocks and later verify only verifiable setups:
+
+ var factory = new MockFactory(MockBehavior.Loose);
+
+ var foo = factory.Create<IFoo>();
+ var bar = factory.Create<IBar>();
+
+ // this setup will be verified when we verify the factory
+ foo.Setup(f => f.Do()).Verifiable();
+
+ // this setup will NOT be verified
+ foo.Setup(f => f.Calculate());
+
+ // this setup will be verified when we verify the factory
+ bar.Setup(b => b.Redo()).Verifiable();
+
+ // exercise the mocks here
+ // note that because the mocks are Loose, members
+ // called in the interfaces for which no matching
+ // setups exist will NOT throw exceptions,
+ // and will rather return default values.
+
+ factory.Verify();
+ // At this point verifiable setups are already checked
+ // and an optional MockException might be thrown.
+
+ The following examples shows how to setup the factory with a
+ default strict behavior, overriding that default for a
+ specific mock:
+
+ var factory = new MockFactory(MockBehavior.Strict);
+
+ // this particular one we want loose
+ var foo = factory.Create<IFoo>(MockBehavior.Loose);
+ var bar = factory.Create<IBar>();
+
+ // specify setups
+
+ // exercise the mocks here
+
+ factory.Verify();
+
+
+
+
+
+
+ Initializes the factory with the given
+ for newly created mocks from the factory.
+
+ The behavior to use for mocks created
+ using the factory method if not overriden
+ by using the overload.
+
+
+
+ Creates a new mock with the default
+ specified at factory construction time.
+
+ Type to mock.
+ A new .
+
+
+ var factory = new MockFactory(MockBehavior.Strict);
+
+ var foo = factory.Create<IFoo>();
+ // use mock on tests
+
+ factory.VerifyAll();
+
+
+
+
+
+ Creates a new mock with the default
+ specified at factory construction time and with the
+ the given constructor arguments for the class.
+
+
+ The mock will try to find the best match constructor given the
+ constructor arguments, and invoke that to initialize the instance.
+ This applies only to classes, not interfaces.
+
+ Type to mock.
+ Constructor arguments for mocked classes.
+ A new .
+
+
+ var factory = new MockFactory(MockBehavior.Default);
+
+ var mock = factory.Create<MyBase>("Foo", 25, true);
+ // use mock on tests
+
+ factory.Verify();
+
+
+
+
+
+ Creates a new mock with the given .
+
+ Type to mock.
+ Behavior to use for the mock, which overrides
+ the default behavior specified at factory construction time.
+ A new .
+
+ The following example shows how to create a mock with a different
+ behavior to that specified as the default for the factory:
+
+ var factory = new MockFactory(MockBehavior.Strict);
+
+ var foo = factory.Create<IFoo>(MockBehavior.Loose);
+
+
+
+
+
+ Creates a new mock with the given
+ and with the the given constructor arguments for the class.
+
+
+ The mock will try to find the best match constructor given the
+ constructor arguments, and invoke that to initialize the instance.
+ This applies only to classes, not interfaces.
+
+ Type to mock.
+ Behavior to use for the mock, which overrides
+ the default behavior specified at factory construction time.
+ Constructor arguments for mocked classes.
+ A new .
+
+ The following example shows how to create a mock with a different
+ behavior to that specified as the default for the factory, passing
+ constructor arguments:
+
+ var factory = new MockFactory(MockBehavior.Default);
+
+ var mock = factory.Create<MyBase>(MockBehavior.Strict, "Foo", 25, true);
+
+
+
+
+
+ Implements creation of a new mock within the factory.
+
+ Type to mock.
+ The behavior for the new mock.
+ Optional arguments for the construction of the mock.
+
+
+
+ Verifies all verifiable expectations on all mocks created
+ by this factory.
+
+
+ One or more mocks had expectations that were not satisfied.
+
+
+
+ Verifies all verifiable expectations on all mocks created
+ by this factory.
+
+
+ One or more mocks had expectations that were not satisfied.
+
+
+
+ Invokes for each mock
+ in , and accumulates the resulting
+ that might be
+ thrown from the action.
+
+ The action to execute against
+ each mock.
+
+
+
+ Whether the base member virtual implementation will be called
+ for mocked classes if no setup is matched. Defaults to .
+
+
+
+
+ Specifies the behavior to use when returning default values for
+ unexpected invocations on loose mocks.
+
+
+
+
+ Gets the mocks that have been created by this factory and
+ that will get verified together.
+
+
+
+
+ Tracks the current mock and interception context.
+
+
+
+
+ Having an active fluent mock context means that the invocation
+ is being performed in "trial" mode, just to gather the
+ target method and arguments that need to be matched later
+ when the actual invocation is made.
+
+
+
+
+ Casts the expression to a lambda expression, removing
+ a cast if there's any.
+
+
+
+
+ Casts the body of the lambda expression to a .
+
+ If the body is not a method call.
+
+
+
+ Converts the body of the lambda expression into the referenced by it.
+
+
+
+
+ Checks whether the body of the lambda expression is a property access.
+
+
+
+
+ Checks whether the expression is a property access.
+
+
+
+
+ Checks whether the body of the lambda expression is a property indexer, which is true
+ when the expression is an whose
+ has
+ equal to .
+
+
+
+
+ Checks whether the expression is a property indexer, which is true
+ when the expression is an whose
+ has
+ equal to .
+
+
+
+
+ Creates an expression that casts the given expression to the
+ type.
+
+
+
+
+ TODO: remove this code when https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331583
+ is fixed.
+
+
+
+
+ Provides legacy API members as extensions so that
+ existing code continues to compile, but new code
+ doesn't see then.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Obsolete.
+
+
+
+
+ Implements the fluent API.
+
+
+
+
+ Allows the specification of a matching condition for an
+ argument in a method invocation, rather than a specific
+ argument value. "It" refers to the argument being matched.
+
+ This class allows the setup to match a method invocation
+ with an arbitrary value, with a value in a specified range, or
+ even one that matches a given predicate.
+
+
+
+
+ Matches any value of the given type.
+
+ Typically used when the actual argument value for a method
+ call is not relevant.
+
+
+ // Throws an exception for a call to Remove with any string value.
+ mock.Setup(x => x.Remove(It.IsAny<string>())).Throws(new InvalidOperationException());
+
+ Type of the value.
+
+
+
+ Matches any value that satisfies the given predicate.
+ Type of the argument to check.The predicate used to match the method argument.
+ Allows the specification of a predicate to perform matching
+ of method call arguments.
+
+ This example shows how to return the value 1 whenever the argument to the
+ Do method is an even number.
+
+ mock.Setup(x => x.Do(It.Is<int>(i => i % 2 == 0)))
+ .Returns(1);
+
+ This example shows how to throw an exception if the argument to the
+ method is a negative number:
+
+ mock.Setup(x => x.GetUser(It.Is<int>(i => i < 0)))
+ .Throws(new ArgumentException());
+
+
+
+
+
+ Matches any value that is in the range specified.
+ Type of the argument to check.The lower bound of the range.The upper bound of the range.
+ The kind of range. See .
+
+ The following example shows how to expect a method call
+ with an integer argument within the 0..100 range.
+
+ mock.Setup(x => x.HasInventory(
+ It.IsAny<string>(),
+ It.IsInRange(0, 100, Range.Inclusive)))
+ .Returns(false);
+
+
+
+
+
+ Matches a string argument if it matches the given regular expression pattern.
+ The pattern to use to match the string argument value.
+ The following example shows how to expect a call to a method where the
+ string argument matches the given regular expression:
+
+ mock.Setup(x => x.Check(It.IsRegex("[a-z]+"))).Returns(1);
+
+
+
+
+
+ Matches a string argument if it matches the given regular expression pattern.
+ The pattern to use to match the string argument value.The options used to interpret the pattern.
+ The following example shows how to expect a call to a method where the
+ string argument matches the given regular expression, in a case insensitive way:
+
+ mock.Setup(x => x.Check(It.IsRegex("[a-z]+", RegexOptions.IgnoreCase))).Returns(1);
+
+
+
+
+
+ A that returns an empty default value
+ for non-mockeable types, and mocks for all other types (interfaces and
+ non-sealed classes) that can be mocked.
+
+
+
+
+ A strongly-typed resource class, for looking up localized strings, etc.
+
+
+
+
+ Returns the cached ResourceManager instance used by this class.
+
+
+
+
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+
+
+
+
+ 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..
+
+
+
+
+ Looks up a localized string similar to Value cannot be an empty string..
+
+
+
+
+ Looks up a localized string similar to Can only add interfaces to the mock..
+
+
+
+
+ Looks up a localized string similar to Can't set return value for void method {0}..
+
+
+
+
+ Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
+
+
+
+
+ Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
+
+
+
+
+ Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
+
+
+
+
+ Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
+
+
+
+
+ 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.
+ Please cast the argument to one of the supported types: {1}.
+ 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..
+
+
+
+
+ Looks up a localized string similar to LINQ method '{0}' not supported..
+
+
+
+
+ Looks up a localized string similar to Member {0}.{1} does not exist..
+
+
+
+
+ Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
+ mock.Setup(x => x.{1}());
+ .
+
+
+
+
+ Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
+ {2}.
+
+
+
+
+ Looks up a localized string similar to Expected only {0} calls to {1}..
+
+
+
+
+ Looks up a localized string similar to Expected only one call to {0}..
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock at least {2} times, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock at least once, but was never performed: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock at most {3} times, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock at most once, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock between {2} and {3} times (Exclusive), but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock between {2} and {3} times (Inclusive), but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock exactly {2} times, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock should never have been performed, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to {0}
+ Expected invocation on the mock once, but was {4} times: {1}.
+
+
+
+
+ Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
+
+
+
+
+ Looks up a localized string similar to Object instance was not created by Moq..
+
+
+
+
+ Looks up a localized string similar to Out expression must evaluate to a constant value..
+
+
+
+
+ Looks up a localized string similar to Property {0}.{1} does not exist..
+
+
+
+
+ Looks up a localized string similar to Property {0}.{1} is write-only..
+
+
+
+
+ Looks up a localized string similar to Property {0}.{1} is read-only..
+
+
+
+
+ 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..
+
+
+
+
+ Looks up a localized string similar to Ref expression must evaluate to a constant value..
+
+
+
+
+ Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
+
+
+
+
+ Looks up a localized string similar to A lambda expression is expected as the argument to It.Is<T>..
+
+
+
+
+ Looks up a localized string similar to Invocation {0} should not have been made..
+
+
+
+
+ Looks up a localized string similar to Expression is not a method invocation: {0}.
+
+
+
+
+ Looks up a localized string similar to Expression is not a property access: {0}.
+
+
+
+
+ Looks up a localized string similar to Expression is not a property setter invocation..
+
+
+
+
+ Looks up a localized string similar to Invalid setup on a non-member method:
+ {0}.
+
+
+
+
+ Looks up a localized string similar to Invalid setup on a non-overridable member:
+ {0}.
+
+
+
+
+ Looks up a localized string similar to Type {0} does not implement required interface {1}.
+
+
+
+
+ Looks up a localized string similar to Type {0} does not from required type {1}.
+
+
+
+
+ Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
+ mock.Setup(x => x.{1}).Returns(value);
+ mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
+ mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
+ .
+
+
+
+
+ Looks up a localized string similar to Expression {0} is not supported..
+
+
+
+
+ Looks up a localized string similar to Only property accesses are supported in intermediate invocations on a setup. Unsupported expression {0}..
+
+
+
+
+ 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}..
+
+
+
+
+ Looks up a localized string similar to Setter expression cannot use argument matchers that receive parameters..
+
+
+
+
+ Looks up a localized string similar to Member {0} is not supported for protected mocking..
+
+
+
+
+ Looks up a localized string similar to Setter expression can only use static custom matchers..
+
+
+
+
+ Looks up a localized string similar to The following setups were not matched:
+ {0}.
+
+
+
+
+ Looks up a localized string similar to Invalid verify on a non-virtual member:
+ {0}.
+
+
+
+
+ Allows querying the universe of mocks for those that behave
+ according to the LINQ query specification.
+
+
+
+
+ Access the universe of mocks of the given type, to retrieve those
+ that behave according to the LINQ query specification.
+
+ The type of the mocked object to query.
+
+
+
+ Creates an mock object of the indicated type.
+
+ The type of the mocked object.
+ The mocked object created.
+
+
+
+ Creates an mock object of the indicated type.
+
+ The predicate with the setup expressions.
+ The type of the mocked object.
+ The mocked object created.
+
+
+
+ Wraps the enumerator inside a queryable.
+
+
+
+
+ Method that is turned into the actual call from .Query{T}, to
+ transform the queryable query into a normal enumerable query.
+ This method should not be used by consumers.
+
+
+
+
+ Helper extensions that are used by the query translator.
+
+
+
+
+ Retrieves a fluent mock from the given setup expression.
+
+
+
+
+ Allows the specification of a matching condition for an
+ argument in a protected member setup, rather than a specific
+ argument value. "ItExpr" refers to the argument being matched.
+
+
+ Use this variant of argument matching instead of
+ for protected setups.
+ This class allows the setup to match a method invocation
+ with an arbitrary value, with a value in a specified range, or
+ even one that matches a given predicate, or null.
+
+
+
+
+ Matches a null value of the given type.
+
+
+ Required for protected mocks as the null value cannot be used
+ directly as it prevents proper method overload selection.
+
+
+
+ // Throws an exception for a call to Remove with a null string value.
+ mock.Protected()
+ .Setup("Remove", ItExpr.IsNull<string>())
+ .Throws(new InvalidOperationException());
+
+
+ Type of the value.
+
+
+
+ Matches any value of the given type.
+
+
+ Typically used when the actual argument value for a method
+ call is not relevant.
+
+
+
+ // Throws an exception for a call to Remove with any string value.
+ mock.Protected()
+ .Setup("Remove", ItExpr.IsAny<string>())
+ .Throws(new InvalidOperationException());
+
+
+ Type of the value.
+
+
+
+ Matches any value that satisfies the given predicate.
+
+ Type of the argument to check.
+ The predicate used to match the method argument.
+
+ Allows the specification of a predicate to perform matching
+ of method call arguments.
+
+
+ This example shows how to return the value 1 whenever the argument to the
+ Do method is an even number.
+
+ mock.Protected()
+ .Setup("Do", ItExpr.Is<int>(i => i % 2 == 0))
+ .Returns(1);
+
+ This example shows how to throw an exception if the argument to the
+ method is a negative number:
+
+ mock.Protected()
+ .Setup("GetUser", ItExpr.Is<int>(i => i < 0))
+ .Throws(new ArgumentException());
+
+
+
+
+
+ Matches any value that is in the range specified.
+
+ Type of the argument to check.
+ The lower bound of the range.
+ The upper bound of the range.
+ The kind of range. See .
+
+ The following example shows how to expect a method call
+ with an integer argument within the 0..100 range.
+
+ mock.Protected()
+ .Setup("HasInventory",
+ ItExpr.IsAny<string>(),
+ ItExpr.IsInRange(0, 100, Range.Inclusive))
+ .Returns(false);
+
+
+
+
+
+ Matches a string argument if it matches the given regular expression pattern.
+
+ The pattern to use to match the string argument value.
+
+ The following example shows how to expect a call to a method where the
+ string argument matches the given regular expression:
+
+ mock.Protected()
+ .Setup("Check", ItExpr.IsRegex("[a-z]+"))
+ .Returns(1);
+
+
+
+
+
+ Matches a string argument if it matches the given regular expression pattern.
+
+ The pattern to use to match the string argument value.
+ The options used to interpret the pattern.
+
+ The following example shows how to expect a call to a method where the
+ string argument matches the given regular expression, in a case insensitive way:
+
+ mock.Protected()
+ .Setup("Check", ItExpr.IsRegex("[a-z]+", RegexOptions.IgnoreCase))
+ .Returns(1);
+
+
+
+
+
diff --git a/build-support/tools/opencover/OpenCover.Console.exe b/build-support/tools/opencover/OpenCover.Console.exe
new file mode 100644
index 00000000..5b3946d0
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Console.exe differ
diff --git a/build-support/tools/opencover/OpenCover.Console.exe.config b/build-support/tools/opencover/OpenCover.Console.exe.config
new file mode 100644
index 00000000..cf4f561e
--- /dev/null
+++ b/build-support/tools/opencover/OpenCover.Console.exe.config
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/build-support/tools/opencover/OpenCover.Console.pdb b/build-support/tools/opencover/OpenCover.Console.pdb
new file mode 100644
index 00000000..3aa75ea2
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Console.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Console.xml b/build-support/tools/opencover/OpenCover.Console.xml
new file mode 100644
index 00000000..9bb59b6a
--- /dev/null
+++ b/build-support/tools/opencover/OpenCover.Console.xml
@@ -0,0 +1,15 @@
+
+
+
+ OpenCover.Console
+
+
+
+
+ This is the initial console harness - it may become the full thing
+
+
+
+
+
+
diff --git a/build-support/tools/opencover/OpenCover.Framework.dll b/build-support/tools/opencover/OpenCover.Framework.dll
new file mode 100644
index 00000000..7168f82d
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Framework.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Framework.pdb b/build-support/tools/opencover/OpenCover.Framework.pdb
new file mode 100644
index 00000000..df901d35
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Framework.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Framework.xml b/build-support/tools/opencover/OpenCover.Framework.xml
new file mode 100644
index 00000000..4948a40e
--- /dev/null
+++ b/build-support/tools/opencover/OpenCover.Framework.xml
@@ -0,0 +1,422 @@
+
+
+
+ OpenCover.Framework
+
+
+
+
+ Parse the command line arguments and set the appropriate properties
+
+
+
+
+ Parse the command line arguments based on the following syntax:
+ [-argument[:optional-value]] [-argument[:optional-value]]
+
+
+
+
+ Check if an argument of the name given was part of the supplied arguments
+
+ an argument name
+ true - if argument was supplied
+
+
+
+ Get the the value of a named argument
+
+ an argument name
+ the value supplied by an argument
+
+
+
+ Get the number of extracted arguments
+
+
+
+
+ properties exposed by the command line object for use in other entities
+
+
+
+
+ the target directory
+
+
+
+
+ If specified then results to be merged by matching hash
+
+
+
+
+ Show the unvisited classes/methods at the end of the coverage run
+
+
+
+
+ Constructs the parser
+
+ An array of command line arguments
+
+
+
+ Get the usage string
+
+ The usage string
+
+
+
+ Extract the arguments and validate them; also validate the supplied options when simple
+
+
+
+
+ the switch -register was supplied
+
+
+
+
+ the switch -register with the user argument was supplied i.e. -register:user
+
+
+
+
+ The target executable that is to be profiles
+
+
+
+
+ The working directory that the action is to take place
+
+
+
+
+ The arguments that are to be passed to the Target
+
+
+
+
+ Requests that the user wants to see the commandline help
+
+
+
+
+ The name of the output file
+
+
+
+
+ If specified then the default filters should not be applied
+
+
+
+
+ If specified then results to be merged by matching hash
+
+
+
+
+ Show the unvisited classes/methods at the end of the coverage run
+
+
+
+
+ Show the unvisited classes/methods at the end of the coverage run
+
+
+
+
+ A list of filters
+
+
+
+
+ The offset for the return code - this is to help avoid collisions between opencover return codes and the target
+
+
+
+
+ This is the core manager for integrating the host the target
+ application and the profiler
+
+ It probably does too much!
+
+
+
+ a branch point
+
+
+
+
+ An instrumentable point
+
+
+
+
+ Get the number of recorded visit points for this identifier
+
+ the sequence point identifier - NOTE 0 is not used
+
+
+
+ Add a number of recorded visit pints against this identifier
+
+ the sequence point identifier - NOTE 0 is not used
+ the number of visit points to add
+
+
+
+ A path that can be taken
+
+
+
+
+ A persistant entiry
+
+
+
+
+ A module that is to be persisted
+
+
+
+
+
+ Save the instrumented data
+
+
+
+
+ Get the sequence points for a function
+
+ The identifying path to the module
+ The token of the function
+ The sequence points that make up that function
+ true - if sequence points exist
+
+
+
+ Get the branch points for a function
+
+ The identifying path to the module
+ The token of the function
+ The branch points that make up that function
+ true - if sequence points exist
+
+
+
+ Check if the module is to be tracked i.e. instrumented
+
+
+
+
+
+
+ Get the full class name i.e. including namespace that the function is contained in
+
+
+
+
+
+
+
+ extract and save the visit data
+
+
+
+
+
+ The coverage session - this is the root entity of a persisted document
+
+
+
+
+ A filter that is used to decide whether an assembly/class pair is instrumented
+
+
+
+
+ Add a filter
+
+ A filter is of the format (+ or -)[assemblyName]className, wildcards are allowed.
+ i.e. -[mscorlib], -[System.*]*, +[App.*]*, +[*]*
+
+
+
+
+
+ Decides whether an assembly should be included in the instrumentation
+
+ the name of the assembly under profile
+ the name of the class under profile
+ All assemblies matching either the inclusion or exclusion filter should be included
+ as it is the class that is being filtered within these unless the class filter is *
+
+
+
+ Determine if an [assemblyname]classname pair matches the current Exclusion or Inclusion filters
+
+ the name of the assembly under profile
+ the name of the class under profile
+ false - if pair matches the exclusion filter or matches no filters, true - if pair matches in the inclusion filter
+
+
+
+ The type of filter, an exclusion filter takes precedence over inclusion filter
+
+
+
+
+ The filter is an inclusion type, i.e. if a assembly/class pair
+ matches the filter then it is included for instrumentation
+
+
+
+
+ The filter is an exclusion type, i.e. if a assembly/class pair
+ matches the filter then it is excluded for instrumentation
+
+
+
+
+ A filter that is used to decide whether an assembly/class pair is instrumented
+
+
+
+
+ Standard constructor
+
+
+
+
+ Standard constructor
+
+ the symbol manager that will provide the data
+ A filter to decide whether to include or exclude an assembly or its classes
+
+
+
+ An entity that contains methods
+
+
+
+
+ A coverage session
+
+
+
+
+ A unique session identifier
+
+
+
+
+ A list of modules that have been profiled under the session
+
+
+
+
+ A file reference within the coverage session and is used to point to an existing File entity
+
+
+
+
+ File details of a source file
+
+
+
+
+ A standard constructor
+
+
+
+
+ The path to file
+
+
+
+
+ An entity that can be instrumented
+
+
+
+
+ The details of a module
+
+
+
+
+ simple constructor
+
+
+
+
+ The full path name to the module
+
+
+
+
+ A list of aliases
+
+
+
+
+ The name of the module
+
+
+
+
+ The files that make up the module
+
+
+
+
+ The classes that make up the module
+
+
+
+
+ A hash of the file used to group them together (especially when running against mstest)
+
+
+
+
+ a sequence point
+
+
+
+
+ Used to register and unregister the profiler
+
+
+ Intentionally not unit tested - as this is calling regsvr32 which does what it does and does not need more testing from me
+
+
+
+
+ Register the profiler using %SystemRoot%\system\regsvr32.exe
+
+ true - user the /n /i:user switches
+
+
+
+ Unregister the profiler using %SystemRoot%\system\regsvr32.exe
+
+ true - user the /n /i:user switches
+
+
+
+ Get the current location of this assembly
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build-support/tools/opencover/OpenCover.Integration.Test.dll b/build-support/tools/opencover/OpenCover.Integration.Test.dll
new file mode 100644
index 00000000..634c858d
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Integration.Test.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Integration.Test.pdb b/build-support/tools/opencover/OpenCover.Integration.Test.pdb
new file mode 100644
index 00000000..d380595e
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Integration.Test.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.CS.dll b/build-support/tools/opencover/OpenCover.Samples.CS.dll
new file mode 100644
index 00000000..269f6048
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.CS.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.CS.pdb b/build-support/tools/opencover/OpenCover.Samples.CS.pdb
new file mode 100644
index 00000000..1422f2bf
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.CS.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.Framework.dll b/build-support/tools/opencover/OpenCover.Samples.Framework.dll
new file mode 100644
index 00000000..c671c73b
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.Framework.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.Framework.pdb b/build-support/tools/opencover/OpenCover.Samples.Framework.pdb
new file mode 100644
index 00000000..7dfabcf5
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.Framework.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.IL.dll b/build-support/tools/opencover/OpenCover.Samples.IL.dll
new file mode 100644
index 00000000..f9cb1606
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.IL.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.IL.pdb b/build-support/tools/opencover/OpenCover.Samples.IL.pdb
new file mode 100644
index 00000000..392376e3
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.IL.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.VB.dll b/build-support/tools/opencover/OpenCover.Samples.VB.dll
new file mode 100644
index 00000000..1508a062
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.VB.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.VB.pdb b/build-support/tools/opencover/OpenCover.Samples.VB.pdb
new file mode 100644
index 00000000..b5d1aec0
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Samples.VB.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Samples.VB.xml b/build-support/tools/opencover/OpenCover.Samples.VB.xml
new file mode 100644
index 00000000..2cb3498e
--- /dev/null
+++ b/build-support/tools/opencover/OpenCover.Samples.VB.xml
@@ -0,0 +1,24 @@
+
+
+
+
+OpenCover.Samples.VB
+
+
+
+
+
+ Returns the cached ResourceManager instance used by this class.
+
+
+
+ Overrides the current thread's CurrentUICulture property for all
+ resource lookups using this strongly typed resource class.
+
+
+
+ A strongly-typed resource class, for looking up localized strings, etc.
+
+
+
+
\ No newline at end of file
diff --git a/build-support/tools/opencover/OpenCover.Test.Profiler.exe b/build-support/tools/opencover/OpenCover.Test.Profiler.exe
new file mode 100644
index 00000000..49b5cbde
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Test.Profiler.exe differ
diff --git a/build-support/tools/opencover/OpenCover.Test.Profiler.ilk b/build-support/tools/opencover/OpenCover.Test.Profiler.ilk
new file mode 100644
index 00000000..de1dc03c
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Test.Profiler.ilk differ
diff --git a/build-support/tools/opencover/OpenCover.Test.Profiler.pdb b/build-support/tools/opencover/OpenCover.Test.Profiler.pdb
new file mode 100644
index 00000000..d2aa5e63
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Test.Profiler.pdb differ
diff --git a/build-support/tools/opencover/OpenCover.Test.dll b/build-support/tools/opencover/OpenCover.Test.dll
new file mode 100644
index 00000000..32d65a56
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Test.dll differ
diff --git a/build-support/tools/opencover/OpenCover.Test.pdb b/build-support/tools/opencover/OpenCover.Test.pdb
new file mode 100644
index 00000000..8d460e4d
Binary files /dev/null and b/build-support/tools/opencover/OpenCover.Test.pdb differ
diff --git a/build-support/tools/opencover/dogfood.cmd b/build-support/tools/opencover/dogfood.cmd
new file mode 100644
index 00000000..060bb53b
--- /dev/null
+++ b/build-support/tools/opencover/dogfood.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:user -target:..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console-x86.exe -targetargs:"OpenCover.Test.dll /noshadow" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/dogfood64.cmd b/build-support/tools/opencover/dogfood64.cmd
new file mode 100644
index 00000000..c357403a
--- /dev/null
+++ b/build-support/tools/opencover/dogfood64.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:user -target:..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console.exe -targetargs:"OpenCover.Test.dll /noshadow" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/dogfood_shadow.cmd b/build-support/tools/opencover/dogfood_shadow.cmd
new file mode 100644
index 00000000..da56e4a4
--- /dev/null
+++ b/build-support/tools/opencover/dogfood_shadow.cmd
@@ -0,0 +1,2 @@
+rem run dogfood tests with shadow
+OpenCover.Console.exe -register:user -targetdir:"%cd%" -target:..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console-x86.exe -targetargs:"OpenCover.Test.dll" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/mstest.opencover.cmd b/build-support/tools/opencover/mstest.opencover.cmd
new file mode 100644
index 00000000..7e223025
--- /dev/null
+++ b/build-support/tools/opencover/mstest.opencover.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:user -target:"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:OpenCover.Test.dll" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/nunit.framework.dll b/build-support/tools/opencover/nunit.framework.dll
new file mode 100644
index 00000000..6856e51e
Binary files /dev/null and b/build-support/tools/opencover/nunit.framework.dll differ
diff --git a/build-support/tools/opencover/opencovertests.cmd b/build-support/tools/opencover/opencovertests.cmd
new file mode 100644
index 00000000..cec82aad
--- /dev/null
+++ b/build-support/tools/opencover/opencovertests.cmd
@@ -0,0 +1 @@
+..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console-x86.exe OpenCover.Test.dll /noshadow
\ No newline at end of file
diff --git a/build-support/tools/opencover/opencovertests.xml b/build-support/tools/opencover/opencovertests.xml
new file mode 100644
index 00000000..1fb2af5e
--- /dev/null
+++ b/build-support/tools/opencover/opencovertests.xml
@@ -0,0 +1,3814 @@
+
+
+
+
+ C:\_oss\opencover\main\bin\Debug\OpenCover.Framework.dll
+ OpenCover.Framework
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <Module>
+
+
+
+ OpenCover.Framework.Bootstrapper
+
+
+ 100663297
+ System.Void OpenCover.Framework.Bootstrapper::.ctor()
+
+
+
+
+
+
+
+
+
+
+
+ 100663298
+ Microsoft.Practices.Unity.IUnityContainer OpenCover.Framework.Bootstrapper::get_Container()
+
+
+
+
+
+
+
+
+
+
+ 100663299
+ System.Void OpenCover.Framework.Bootstrapper::Initialise(OpenCover.Framework.IFilter,OpenCover.Framework.ICommandLine,OpenCover.Framework.Persistance.IPersistance)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.CommandLineParserBase
+
+
+ 100663300
+ System.Void OpenCover.Framework.CommandLineParserBase::.ctor(System.String[])
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663301
+ System.Collections.Generic.IDictionary`2<System.String,System.String> OpenCover.Framework.CommandLineParserBase::get_ParsedArguments()
+
+
+
+
+
+ 100663302
+ System.Void OpenCover.Framework.CommandLineParserBase::set_ParsedArguments(System.Collections.Generic.IDictionary`2<System.String,System.String>)
+
+
+
+
+
+ 100663303
+ System.Void OpenCover.Framework.CommandLineParserBase::ParseArguments()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663304
+ System.Int32 OpenCover.Framework.CommandLineParserBase::get_ArgumentCount()
+
+
+
+
+
+
+
+
+
+
+ 100663305
+ System.Boolean OpenCover.Framework.CommandLineParserBase::HasArgument(System.String)
+
+
+
+
+
+
+
+
+
+
+ 100663306
+ System.String OpenCover.Framework.CommandLineParserBase::GetArgumentValue(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.CommandLineParser
+
+
+ 100663310
+ System.Void OpenCover.Framework.CommandLineParser::.ctor(System.String[])
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663311
+ System.String OpenCover.Framework.CommandLineParser::Usage()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663312
+ System.Void OpenCover.Framework.CommandLineParser::ExtractAndValidateArguments()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663313
+ System.Boolean OpenCover.Framework.CommandLineParser::get_Register()
+
+
+
+
+
+ 100663314
+ System.Void OpenCover.Framework.CommandLineParser::set_Register(System.Boolean)
+
+
+
+
+
+ 100663315
+ System.Boolean OpenCover.Framework.CommandLineParser::get_UserRegistration()
+
+
+
+
+
+ 100663316
+ System.Void OpenCover.Framework.CommandLineParser::set_UserRegistration(System.Boolean)
+
+
+
+
+
+ 100663317
+ System.String OpenCover.Framework.CommandLineParser::get_Target()
+
+
+
+
+
+ 100663318
+ System.Void OpenCover.Framework.CommandLineParser::set_Target(System.String)
+
+
+
+
+
+ 100663319
+ System.String OpenCover.Framework.CommandLineParser::get_TargetDir()
+
+
+
+
+
+ 100663320
+ System.Void OpenCover.Framework.CommandLineParser::set_TargetDir(System.String)
+
+
+
+
+
+ 100663321
+ System.String OpenCover.Framework.CommandLineParser::get_TargetArgs()
+
+
+
+
+
+ 100663322
+ System.Void OpenCover.Framework.CommandLineParser::set_TargetArgs(System.String)
+
+
+
+
+
+ 100663323
+ System.Boolean OpenCover.Framework.CommandLineParser::get_PrintUsage()
+
+
+
+
+
+ 100663324
+ System.Void OpenCover.Framework.CommandLineParser::set_PrintUsage(System.Boolean)
+
+
+
+
+
+ 100663325
+ System.String OpenCover.Framework.CommandLineParser::get_OutputFile()
+
+
+
+
+
+ 100663326
+ System.Void OpenCover.Framework.CommandLineParser::set_OutputFile(System.String)
+
+
+
+
+
+ 100663327
+ System.Boolean OpenCover.Framework.CommandLineParser::get_NoDefaultFilters()
+
+
+
+
+
+ 100663328
+ System.Void OpenCover.Framework.CommandLineParser::set_NoDefaultFilters(System.Boolean)
+
+
+
+
+
+ 100663329
+ System.Boolean OpenCover.Framework.CommandLineParser::get_MergeByHash()
+
+
+
+
+
+ 100663330
+ System.Void OpenCover.Framework.CommandLineParser::set_MergeByHash(System.Boolean)
+
+
+
+
+
+ 100663331
+ System.Boolean OpenCover.Framework.CommandLineParser::get_ShowUnvisited()
+
+
+
+
+
+ 100663332
+ System.Void OpenCover.Framework.CommandLineParser::set_ShowUnvisited(System.Boolean)
+
+
+
+
+
+ 100663333
+ System.Boolean OpenCover.Framework.CommandLineParser::get_ReturnTargetCode()
+
+
+
+
+
+ 100663334
+ System.Void OpenCover.Framework.CommandLineParser::set_ReturnTargetCode(System.Boolean)
+
+
+
+
+
+ 100663335
+ System.Collections.Generic.List`1<System.String> OpenCover.Framework.CommandLineParser::get_Filters()
+
+
+
+
+
+ 100663336
+ System.Void OpenCover.Framework.CommandLineParser::set_Filters(System.Collections.Generic.List`1<System.String>)
+
+
+
+
+
+ 100663337
+ System.Int32 OpenCover.Framework.CommandLineParser::get_ReturnCodeOffset()
+
+
+
+
+
+ 100663338
+ System.Void OpenCover.Framework.CommandLineParser::set_ReturnCodeOffset(System.Int32)
+
+
+
+
+
+
+
+ OpenCover.Framework.Communication.MarshalWrapper
+
+
+ 100663341
+ T OpenCover.Framework.Communication.MarshalWrapper::PtrToStructure(System.IntPtr)
+
+
+
+
+
+
+
+
+
+
+ 100663342
+ System.Void OpenCover.Framework.Communication.MarshalWrapper::StructureToPtr(T,System.IntPtr,System.Boolean)
+
+
+
+
+
+
+
+
+
+
+ 100663343
+ System.Void OpenCover.Framework.Communication.MarshalWrapper::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Manager.ProfilerManager
+
+
+ 100663345
+ System.Void OpenCover.Framework.Manager.ProfilerManager::.ctor(OpenCover.Framework.Communication.IMessageHandler,OpenCover.Framework.Persistance.IPersistance)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663346
+ System.Void OpenCover.Framework.Manager.ProfilerManager::RunProcess(System.Action`1<System.Action`1<System.Collections.Specialized.StringDictionary>>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663347
+ System.Void OpenCover.Framework.Manager.ProfilerManager::ProcessMessages(System.Collections.Generic.List`1<System.Threading.WaitHandle>,System.Runtime.InteropServices.GCHandle)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663348
+ System.Void OpenCover.Framework.Manager.ProfilerManager::SendChunkAndWaitForConfirmation(System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Manager.ProfilerManager/<>c__DisplayClass6
+
+
+ 100663556
+ System.Void OpenCover.Framework.Manager.ProfilerManager/<>c__DisplayClass6::.ctor()
+
+
+
+
+
+ 100663557
+ System.Void OpenCover.Framework.Manager.ProfilerManager/<>c__DisplayClass6::<RunProcess>b__1(System.Object)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663558
+ System.Void OpenCover.Framework.Manager.ProfilerManager/<>c__DisplayClass6::<RunProcess>b__3(System.Object)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663559
+ System.Void OpenCover.Framework.Manager.ProfilerManager/<>c__DisplayClass6::<RunProcess>b__2(System.Collections.Specialized.StringDictionary)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Communication.MessageHandler
+
+
+ 100663352
+ System.Void OpenCover.Framework.Communication.MessageHandler::.ctor(OpenCover.Framework.Service.IProfilerCommunication,OpenCover.Framework.Communication.IMarshalWrapper)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663353
+ System.Int32 OpenCover.Framework.Communication.MessageHandler::StandardMessage(OpenCover.Framework.Communication.MSG_Type,System.IntPtr,System.Action`1<System.Int32>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663354
+ System.Int32 OpenCover.Framework.Communication.MessageHandler::get_ReadSize()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663355
+ System.Void OpenCover.Framework.Communication.MessageHandler::Complete()
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.InstrumentationPoint
+
+
+ 100663356
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::.cctor()
+
+
+
+
+
+
+
+
+
+
+ 100663357
+ System.Int32 OpenCover.Framework.Model.InstrumentationPoint::GetCount(System.UInt32)
+
+
+
+
+
+
+
+
+
+
+ 100663358
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::AddCount(System.UInt32,System.Int32)
+
+
+
+
+
+
+
+
+
+
+ 100663359
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::.ctor()
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663360
+ System.Int32 OpenCover.Framework.Model.InstrumentationPoint::get_VisitCount()
+
+
+
+
+
+ 100663361
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::set_VisitCount(System.Int32)
+
+
+
+
+
+ 100663362
+ System.UInt32 OpenCover.Framework.Model.InstrumentationPoint::get_UniqueSequencePoint()
+
+
+
+
+
+ 100663363
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::set_UniqueSequencePoint(System.UInt32)
+
+
+
+
+
+ 100663364
+ System.UInt32 OpenCover.Framework.Model.InstrumentationPoint::get_Ordinal()
+
+
+
+
+
+ 100663365
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::set_Ordinal(System.UInt32)
+
+
+
+
+
+ 100663366
+ System.Int32 OpenCover.Framework.Model.InstrumentationPoint::get_Offset()
+
+
+
+
+
+ 100663367
+ System.Void OpenCover.Framework.Model.InstrumentationPoint::set_Offset(System.Int32)
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.BranchPoint
+
+
+ 100663368
+ System.Int32 OpenCover.Framework.Model.BranchPoint::get_Path()
+
+
+
+
+
+ 100663369
+ System.Void OpenCover.Framework.Model.BranchPoint::set_Path(System.Int32)
+
+
+
+
+
+ 100663370
+ System.Void OpenCover.Framework.Model.BranchPoint::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.InstrumentationModelBuilderFactory
+
+
+ 100663374
+ System.Void OpenCover.Framework.Model.InstrumentationModelBuilderFactory::.ctor(OpenCover.Framework.ICommandLine,OpenCover.Framework.IFilter)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663375
+ OpenCover.Framework.Model.IInstrumentationModelBuilder OpenCover.Framework.Model.InstrumentationModelBuilderFactory::CreateModelBuilder(System.String,System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Persistance.BasePersistance
+
+
+ 100663384
+ System.Void OpenCover.Framework.Persistance.BasePersistance::.ctor(OpenCover.Framework.ICommandLine)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663385
+ OpenCover.Framework.Model.CoverageSession OpenCover.Framework.Persistance.BasePersistance::get_CoverageSession()
+
+
+
+
+
+ 100663386
+ System.Void OpenCover.Framework.Persistance.BasePersistance::set_CoverageSession(OpenCover.Framework.Model.CoverageSession)
+
+
+
+
+
+ 100663387
+ System.Void OpenCover.Framework.Persistance.BasePersistance::PersistModule(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663388
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance::IsTracking(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663389
+ System.Void OpenCover.Framework.Persistance.BasePersistance::Commit()
+
+
+
+
+
+
+
+
+
+
+ 100663390
+ System.Void OpenCover.Framework.Persistance.BasePersistance::PopulateInstrumentedPoints()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663391
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance::GetSequencePointsForFunction(System.String,System.Int32,OpenCover.Framework.Model.InstrumentationPoint[]&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663392
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance::GetBranchPointsForFunction(System.String,System.Int32,OpenCover.Framework.Model.BranchPoint[]&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663393
+ OpenCover.Framework.Model.Method OpenCover.Framework.Persistance.BasePersistance::GetMethod(System.String,System.Int32,OpenCover.Framework.Model.Class&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663394
+ System.String OpenCover.Framework.Persistance.BasePersistance::GetClassFullName(System.String,System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663395
+ System.Void OpenCover.Framework.Persistance.BasePersistance::SaveVisitData(System.Byte[])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663396
+ System.Collections.Generic.IEnumerable`1<OpenCover.Framework.Model.Class> OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__f(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+
+
+
+ 100663397
+ <>f__AnonymousType0`2<OpenCover.Framework.Model.Module,OpenCover.Framework.Model.Class> OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__10(OpenCover.Framework.Model.Module,OpenCover.Framework.Model.Class)
+
+
+
+
+
+
+
+
+ 100663398
+ System.Collections.Generic.IEnumerable`1<OpenCover.Framework.Model.Method> OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__11(<>f__AnonymousType0`2<OpenCover.Framework.Model.Module,OpenCover.Framework.Model.Class>)
+
+
+
+
+
+
+
+
+
+
+
+ 100663399
+ OpenCover.Framework.Model.Method OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__12(<>f__AnonymousType0`2<OpenCover.Framework.Model.Module,OpenCover.Framework.Model.Class>,OpenCover.Framework.Model.Method)
+
+
+
+
+
+
+
+
+ 100663400
+ OpenCover.Framework.Model.SequencePoint OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__13(OpenCover.Framework.Model.SequencePoint)
+
+
+
+
+
+
+
+
+ 100663401
+ OpenCover.Framework.Model.BranchPoint OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__14(OpenCover.Framework.Model.BranchPoint)
+
+
+
+
+
+
+
+
+ 100663402
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__15(OpenCover.Framework.Model.BranchPoint)
+
+
+
+
+
+
+
+
+ 100663403
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance::<PopulateInstrumentedPoints>b__16(OpenCover.Framework.Model.SequencePoint)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass7
+
+
+ 100663560
+ System.Void OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass7::.ctor()
+
+
+
+
+
+ 100663561
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass7::<PersistModule>b__1(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+ 100663562
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass7::<PersistModule>b__2(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+ 100663563
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass7::<PersistModule>b__3(System.String)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClassb
+
+
+ 100663564
+ System.Void OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClassb::.ctor()
+
+
+
+
+
+ 100663565
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClassb::<IsTracking>b__9(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+ 100663566
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClassb::<IsTracking>b__a(System.String)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass21
+
+
+ 100663573
+ System.Void OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass21::.ctor()
+
+
+
+
+
+ 100663574
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass21::<GetMethod>b__1f(OpenCover.Framework.Model.Module)
+
+
+
+
+
+
+
+
+ 100663575
+ System.Boolean OpenCover.Framework.Persistance.BasePersistance/<>c__DisplayClass21::<GetMethod>b__20(System.String)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Persistance.FilePersistance
+
+
+ 100663404
+ System.Void OpenCover.Framework.Persistance.FilePersistance::.ctor(OpenCover.Framework.ICommandLine)
+
+
+
+
+
+
+
+
+
+
+ 100663405
+ System.Void OpenCover.Framework.Persistance.FilePersistance::Initialise(System.String)
+
+
+
+
+
+
+
+
+
+
+ 100663406
+ System.Void OpenCover.Framework.Persistance.FilePersistance::Commit()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663407
+ System.Void OpenCover.Framework.Persistance.FilePersistance::SaveCoverageFile()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.FilterHelper
+
+
+ 100663411
+ System.String OpenCover.Framework.FilterHelper::WrapWithAnchors(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Filter
+
+
+ 100663412
+ System.Collections.Generic.IList`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>> OpenCover.Framework.Filter::get_InclusionFilter()
+
+
+
+
+
+ 100663413
+ System.Void OpenCover.Framework.Filter::set_InclusionFilter(System.Collections.Generic.IList`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>)
+
+
+
+
+
+ 100663414
+ System.Collections.Generic.IList`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>> OpenCover.Framework.Filter::get_ExclusionFilter()
+
+
+
+
+
+ 100663415
+ System.Void OpenCover.Framework.Filter::set_ExclusionFilter(System.Collections.Generic.IList`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>)
+
+
+
+
+
+ 100663416
+ System.Void OpenCover.Framework.Filter::.ctor()
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663417
+ System.Boolean OpenCover.Framework.Filter::UseAssembly(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663418
+ System.Boolean OpenCover.Framework.Filter::InstrumentClass(System.String,System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663419
+ System.Void OpenCover.Framework.Filter::AddFilter(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663420
+ System.Void OpenCover.Framework.Filter::GetAssemblyClassName(System.String,OpenCover.Framework.FilterType&,System.String&,System.String&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663421
+ System.String OpenCover.Framework.Filter::ValidateAndEscape(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Filter/<>c__DisplayClass3
+
+
+ 100663576
+ System.Void OpenCover.Framework.Filter/<>c__DisplayClass3::.ctor()
+
+
+
+
+
+ 100663577
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClass3::<UseAssembly>b__0(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+
+ 100663578
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClass3::<UseAssembly>b__1(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+
+ 100663579
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClass3::<UseAssembly>b__2(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Filter/<>c__DisplayClassa
+
+
+ 100663580
+ System.Void OpenCover.Framework.Filter/<>c__DisplayClassa::.ctor()
+
+
+
+
+
+ 100663581
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClassa::<InstrumentClass>b__5(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+
+ 100663582
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClassa::<InstrumentClass>b__6(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+
+ 100663583
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClassa::<InstrumentClass>b__7(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+ 100663584
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClassa::<InstrumentClass>b__8(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+ 100663585
+ System.Boolean OpenCover.Framework.Filter/<>c__DisplayClassa::<InstrumentClass>b__9(System.Collections.Generic.KeyValuePair`2<System.String,System.String>)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.InstrumentationModelBuilder
+
+
+ 100663422
+ System.Void OpenCover.Framework.Model.InstrumentationModelBuilder::.ctor(OpenCover.Framework.Symbols.ISymbolManager,OpenCover.Framework.IFilter)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663423
+ OpenCover.Framework.Model.Module OpenCover.Framework.Model.InstrumentationModelBuilder::BuildModuleModel()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663424
+ System.String OpenCover.Framework.Model.InstrumentationModelBuilder::HashFile(System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663425
+ System.Boolean OpenCover.Framework.Model.InstrumentationModelBuilder::get_CanInstrument()
+
+
+
+
+
+
+
+
+
+
+ 100663426
+ System.Void OpenCover.Framework.Model.InstrumentationModelBuilder::BuildClassModel(OpenCover.Framework.Model.Class,OpenCover.Framework.Model.File[])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663427
+ System.Boolean OpenCover.Framework.Model.InstrumentationModelBuilder::<BuildClassModel>b__1(OpenCover.Framework.Model.SequencePoint)
+
+
+
+
+
+
+
+
+ 100663428
+ System.Boolean OpenCover.Framework.Model.InstrumentationModelBuilder::<BuildClassModel>b__2(OpenCover.Framework.Model.Method)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.Class
+
+
+ 100663429
+ System.String OpenCover.Framework.Model.Class::get_FullName()
+
+
+
+
+
+ 100663430
+ System.Void OpenCover.Framework.Model.Class::set_FullName(System.String)
+
+
+
+
+
+ 100663431
+ OpenCover.Framework.Model.File[] OpenCover.Framework.Model.Class::get_Files()
+
+
+
+
+
+ 100663432
+ System.Void OpenCover.Framework.Model.Class::set_Files(OpenCover.Framework.Model.File[])
+
+
+
+
+
+ 100663433
+ OpenCover.Framework.Model.Method[] OpenCover.Framework.Model.Class::get_Methods()
+
+
+
+
+
+ 100663434
+ System.Void OpenCover.Framework.Model.Class::set_Methods(OpenCover.Framework.Model.Method[])
+
+
+
+
+
+ 100663435
+ System.Void OpenCover.Framework.Model.Class::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.CoverageSession
+
+
+ 100663436
+ System.String OpenCover.Framework.Model.CoverageSession::get_SessionId()
+
+
+
+
+
+ 100663437
+ System.Void OpenCover.Framework.Model.CoverageSession::set_SessionId(System.String)
+
+
+
+
+
+ 100663438
+ OpenCover.Framework.Model.Module[] OpenCover.Framework.Model.CoverageSession::get_Modules()
+
+
+
+
+
+ 100663439
+ System.Void OpenCover.Framework.Model.CoverageSession::set_Modules(OpenCover.Framework.Model.Module[])
+
+
+
+
+
+ 100663440
+ System.Void OpenCover.Framework.Model.CoverageSession::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.FileRef
+
+
+ 100663441
+ System.UInt32 OpenCover.Framework.Model.FileRef::get_UniqueId()
+
+
+
+
+
+ 100663442
+ System.Void OpenCover.Framework.Model.FileRef::set_UniqueId(System.UInt32)
+
+
+
+
+
+ 100663443
+ System.Void OpenCover.Framework.Model.FileRef::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.File
+
+
+ 100663444
+ System.Void OpenCover.Framework.Model.File::.ctor()
+
+
+
+
+
+
+
+
+
+
+
+ 100663445
+ System.String OpenCover.Framework.Model.File::get_FullPath()
+
+
+
+
+
+ 100663446
+ System.Void OpenCover.Framework.Model.File::set_FullPath(System.String)
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.FileEqualityComparer
+
+
+ 100663447
+ System.Boolean OpenCover.Framework.Model.FileEqualityComparer::Equals(OpenCover.Framework.Model.File,OpenCover.Framework.Model.File)
+
+
+
+
+
+
+
+
+
+
+ 100663448
+ System.Int32 OpenCover.Framework.Model.FileEqualityComparer::GetHashCode(OpenCover.Framework.Model.File)
+
+
+
+
+
+
+
+
+
+
+ 100663449
+ System.Void OpenCover.Framework.Model.FileEqualityComparer::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.Method
+
+
+ 100663450
+ System.Int32 OpenCover.Framework.Model.Method::get_MetadataToken()
+
+
+
+
+
+ 100663451
+ System.Void OpenCover.Framework.Model.Method::set_MetadataToken(System.Int32)
+
+
+
+
+
+ 100663452
+ System.String OpenCover.Framework.Model.Method::get_Name()
+
+
+
+
+
+ 100663453
+ System.Void OpenCover.Framework.Model.Method::set_Name(System.String)
+
+
+
+
+
+ 100663454
+ OpenCover.Framework.Model.FileRef OpenCover.Framework.Model.Method::get_FileRef()
+
+
+
+
+
+ 100663455
+ System.Void OpenCover.Framework.Model.Method::set_FileRef(OpenCover.Framework.Model.FileRef)
+
+
+
+
+
+ 100663456
+ OpenCover.Framework.Model.SequencePoint[] OpenCover.Framework.Model.Method::get_SequencePoints()
+
+
+
+
+
+ 100663457
+ System.Void OpenCover.Framework.Model.Method::set_SequencePoints(OpenCover.Framework.Model.SequencePoint[])
+
+
+
+
+
+ 100663458
+ OpenCover.Framework.Model.BranchPoint[] OpenCover.Framework.Model.Method::get_BranchPoints()
+
+
+
+
+
+ 100663459
+ System.Void OpenCover.Framework.Model.Method::set_BranchPoints(OpenCover.Framework.Model.BranchPoint[])
+
+
+
+
+
+ 100663460
+ OpenCover.Framework.Model.InstrumentationPoint OpenCover.Framework.Model.Method::get_MethodPoint()
+
+
+
+
+
+ 100663461
+ System.Void OpenCover.Framework.Model.Method::set_MethodPoint(OpenCover.Framework.Model.InstrumentationPoint)
+
+
+
+
+
+ 100663462
+ System.Boolean OpenCover.Framework.Model.Method::get_Visited()
+
+
+
+
+
+ 100663463
+ System.Void OpenCover.Framework.Model.Method::set_Visited(System.Boolean)
+
+
+
+
+
+ 100663464
+ System.Int32 OpenCover.Framework.Model.Method::get_CyclomaticComplexity()
+
+
+
+
+
+ 100663465
+ System.Void OpenCover.Framework.Model.Method::set_CyclomaticComplexity(System.Int32)
+
+
+
+
+
+ 100663466
+ System.Int32 OpenCover.Framework.Model.Method::get_SequenceCoverage()
+
+
+
+
+
+ 100663467
+ System.Void OpenCover.Framework.Model.Method::set_SequenceCoverage(System.Int32)
+
+
+
+
+
+ 100663468
+ System.Int32 OpenCover.Framework.Model.Method::get_BranchCoverage()
+
+
+
+
+
+ 100663469
+ System.Void OpenCover.Framework.Model.Method::set_BranchCoverage(System.Int32)
+
+
+
+
+
+ 100663470
+ System.Boolean OpenCover.Framework.Model.Method::get_IsConstructor()
+
+
+
+
+
+ 100663471
+ System.Void OpenCover.Framework.Model.Method::set_IsConstructor(System.Boolean)
+
+
+
+
+
+ 100663472
+ System.Boolean OpenCover.Framework.Model.Method::get_IsStatic()
+
+
+
+
+
+ 100663473
+ System.Void OpenCover.Framework.Model.Method::set_IsStatic(System.Boolean)
+
+
+
+
+
+ 100663474
+ System.Boolean OpenCover.Framework.Model.Method::get_IsGetter()
+
+
+
+
+
+ 100663475
+ System.Void OpenCover.Framework.Model.Method::set_IsGetter(System.Boolean)
+
+
+
+
+
+ 100663476
+ System.Boolean OpenCover.Framework.Model.Method::get_IsSetter()
+
+
+
+
+
+ 100663477
+ System.Void OpenCover.Framework.Model.Method::set_IsSetter(System.Boolean)
+
+
+
+
+
+ 100663478
+ System.Void OpenCover.Framework.Model.Method::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.Module
+
+
+ 100663479
+ System.Void OpenCover.Framework.Model.Module::.ctor()
+
+
+
+
+
+
+
+
+
+
+
+ 100663480
+ System.String OpenCover.Framework.Model.Module::get_FullName()
+
+
+
+
+
+ 100663481
+ System.Void OpenCover.Framework.Model.Module::set_FullName(System.String)
+
+
+
+
+
+ 100663482
+ System.Collections.Generic.IList`1<System.String> OpenCover.Framework.Model.Module::get_Aliases()
+
+
+
+
+
+ 100663483
+ System.Void OpenCover.Framework.Model.Module::set_Aliases(System.Collections.Generic.IList`1<System.String>)
+
+
+
+
+
+ 100663484
+ System.String OpenCover.Framework.Model.Module::get_ModuleName()
+
+
+
+
+
+ 100663485
+ System.Void OpenCover.Framework.Model.Module::set_ModuleName(System.String)
+
+
+
+
+
+ 100663486
+ OpenCover.Framework.Model.File[] OpenCover.Framework.Model.Module::get_Files()
+
+
+
+
+
+ 100663487
+ System.Void OpenCover.Framework.Model.Module::set_Files(OpenCover.Framework.Model.File[])
+
+
+
+
+
+ 100663488
+ OpenCover.Framework.Model.Class[] OpenCover.Framework.Model.Module::get_Classes()
+
+
+
+
+
+ 100663489
+ System.Void OpenCover.Framework.Model.Module::set_Classes(OpenCover.Framework.Model.Class[])
+
+
+
+
+
+ 100663490
+ System.String OpenCover.Framework.Model.Module::get_ModuleHash()
+
+
+
+
+
+ 100663491
+ System.Void OpenCover.Framework.Model.Module::set_ModuleHash(System.String)
+
+
+
+
+
+
+
+ OpenCover.Framework.Model.SequencePoint
+
+
+ 100663492
+ System.Int32 OpenCover.Framework.Model.SequencePoint::get_StartLine()
+
+
+
+
+
+ 100663493
+ System.Void OpenCover.Framework.Model.SequencePoint::set_StartLine(System.Int32)
+
+
+
+
+
+ 100663494
+ System.Int32 OpenCover.Framework.Model.SequencePoint::get_StartColumn()
+
+
+
+
+
+ 100663495
+ System.Void OpenCover.Framework.Model.SequencePoint::set_StartColumn(System.Int32)
+
+
+
+
+
+ 100663496
+ System.Int32 OpenCover.Framework.Model.SequencePoint::get_EndLine()
+
+
+
+
+
+ 100663497
+ System.Void OpenCover.Framework.Model.SequencePoint::set_EndLine(System.Int32)
+
+
+
+
+
+ 100663498
+ System.Int32 OpenCover.Framework.Model.SequencePoint::get_EndColumn()
+
+
+
+
+
+ 100663499
+ System.Void OpenCover.Framework.Model.SequencePoint::set_EndColumn(System.Int32)
+
+
+
+
+
+ 100663500
+ System.Void OpenCover.Framework.Model.SequencePoint::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.ProfilerRegistration
+
+
+ 100663501
+ System.Void OpenCover.Framework.ProfilerRegistration::Register(System.Boolean)
+
+
+
+
+
+
+
+
+
+
+ 100663502
+ System.Void OpenCover.Framework.ProfilerRegistration::Unregister(System.Boolean)
+
+
+
+
+
+
+
+
+
+
+ 100663503
+ System.Void OpenCover.Framework.ProfilerRegistration::ExecuteRegsvr32(System.Boolean,System.Boolean)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663504
+ System.Void OpenCover.Framework.ProfilerRegistration::ExecuteRegsvr32(System.Boolean,System.Boolean,System.Boolean)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663505
+ System.String OpenCover.Framework.ProfilerRegistration::GetAssemblyLocation()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663506
+ System.String OpenCover.Framework.ProfilerRegistration::GetProfilerPath(System.Boolean)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663507
+ System.Void OpenCover.Framework.ProfilerRegistration::.ctor()
+
+
+
+
+
+
+
+ OpenCover.Framework.Service.ProfilerCommunication
+
+
+ 100663512
+ System.Void OpenCover.Framework.Service.ProfilerCommunication::.ctor(OpenCover.Framework.IFilter,OpenCover.Framework.Persistance.IPersistance,OpenCover.Framework.Model.IInstrumentationModelBuilderFactory)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663513
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication::TrackAssembly(System.String,System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663514
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication::GetBranchPoints(System.String,System.String,System.Int32,OpenCover.Framework.Model.BranchPoint[]&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663515
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication::GetSequencePoints(System.String,System.String,System.Int32,OpenCover.Framework.Model.InstrumentationPoint[]&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663516
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication::GetPoints(System.Func`1<System.Boolean>,System.String,System.String,System.Int32,T[]&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663517
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication::CanReturnPoints(System.String,System.String,System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+ 100663518
+ System.Void OpenCover.Framework.Service.ProfilerCommunication::Stopping()
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass1
+
+
+ 100663586
+ System.Void OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass1::.ctor()
+
+
+
+
+
+ 100663587
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass1::<GetBranchPoints>b__0()
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass4
+
+
+ 100663588
+ System.Void OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass4::.ctor()
+
+
+
+
+
+ 100663589
+ System.Boolean OpenCover.Framework.Service.ProfilerCommunication/<>c__DisplayClass4::<GetSequencePoints>b__3()
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Symbols.CecilSymbolManager
+
+
+ 100663528
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::.ctor(OpenCover.Framework.ICommandLine,OpenCover.Framework.IFilter)
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663529
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::get_ModulePath()
+
+
+
+
+
+
+
+
+
+
+ 100663530
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::get_ModuleName()
+
+
+
+
+
+
+
+
+
+
+ 100663531
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::Initialise(System.String,System.String)
+
+
+
+
+
+
+
+
+
+
+
+ 100663532
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::FindSymbolsFolder()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663533
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::FindSymbolsFolder(System.String,System.String)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663534
+ Mono.Cecil.AssemblyDefinition OpenCover.Framework.Symbols.CecilSymbolManager::get_SourceAssembly()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663535
+ OpenCover.Framework.Model.File[] OpenCover.Framework.Symbols.CecilSymbolManager::GetFiles()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663536
+ OpenCover.Framework.Model.Class[] OpenCover.Framework.Symbols.CecilSymbolManager::GetInstrumentableTypes()
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663537
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::GetInstrumentableTypes(System.Collections.Generic.IEnumerable`1<Mono.Cecil.TypeDefinition>,System.Collections.Generic.List`1<OpenCover.Framework.Model.Class>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663538
+ OpenCover.Framework.Model.Method[] OpenCover.Framework.Symbols.CecilSymbolManager::GetMethodsForType(OpenCover.Framework.Model.Class,OpenCover.Framework.Model.File[])
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663539
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::GetFirstFile(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663540
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::GetMethodsForType(System.Collections.Generic.IEnumerable`1<Mono.Cecil.TypeDefinition>,OpenCover.Framework.Model.Class,System.Collections.Generic.List`1<OpenCover.Framework.Model.Method>,OpenCover.Framework.Model.File[])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663541
+ OpenCover.Framework.Model.SequencePoint[] OpenCover.Framework.Symbols.CecilSymbolManager::GetSequencePointsForToken(System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663542
+ OpenCover.Framework.Model.BranchPoint[] OpenCover.Framework.Symbols.CecilSymbolManager::GetBranchPointsForToken(System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663543
+ System.Int32 OpenCover.Framework.Symbols.CecilSymbolManager::GetCyclomaticComplexityForToken(System.Int32)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663544
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::GetSequencePointsForToken(System.Collections.Generic.IEnumerable`1<Mono.Cecil.TypeDefinition>,System.Int32,System.Collections.Generic.List`1<OpenCover.Framework.Model.SequencePoint>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663545
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::GetBranchPointsForToken(System.Collections.Generic.IEnumerable`1<Mono.Cecil.TypeDefinition>,System.Int32,System.Collections.Generic.List`1<OpenCover.Framework.Model.BranchPoint>)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663546
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager::GetCyclomaticComplexityForToken(System.Collections.Generic.IEnumerable`1<Mono.Cecil.TypeDefinition>,System.Int32,System.Int32&)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663547
+ OpenCover.Framework.Model.File OpenCover.Framework.Symbols.CecilSymbolManager::<GetFiles>b__1(OpenCover.Framework.Model.File)
+
+
+
+
+
+
+
+
+ 100663548
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager::<GetInstrumentableTypes>b__3(OpenCover.Framework.Model.Class)
+
+
+
+
+
+
+
+
+ 100663549
+ OpenCover.Framework.Model.File OpenCover.Framework.Symbols.CecilSymbolManager::<GetInstrumentableTypes>b__6(System.String)
+
+
+
+
+
+
+
+
+ 100663550
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager::<GetFirstFile>b__8(Mono.Cecil.Cil.Instruction)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 100663551
+ System.String OpenCover.Framework.Symbols.CecilSymbolManager::<GetFirstFile>b__9(Mono.Cecil.Cil.Instruction)
+
+
+
+
+
+
+
+
+ 100663552
+ OpenCover.Framework.Model.FileRef OpenCover.Framework.Symbols.CecilSymbolManager::<GetMethodsForType>b__f(OpenCover.Framework.Model.File)
+
+
+
+
+
+
+
+
+ 100663553
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager::<GetSequencePointsForToken>b__15(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+
+ 100663554
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager::<GetBranchPointsForToken>b__1e(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+
+ 100663555
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager::<GetCyclomaticComplexityForToken>b__24(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass11
+
+
+ 100663590
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass11::.ctor()
+
+
+
+
+
+ 100663591
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass11::<GetMethodsForType>b__e(OpenCover.Framework.Model.File)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass18
+
+
+ 100663592
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass18::.ctor()
+
+
+
+
+
+ 100663593
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass18::<GetSequencePointsForToken>b__14(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass21
+
+
+ 100663594
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass21::.ctor()
+
+
+
+
+
+ 100663595
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass21::<GetBranchPointsForToken>b__1d(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+ OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass27
+
+
+ 100663596
+ System.Void OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass27::.ctor()
+
+
+
+
+
+ 100663597
+ System.Boolean OpenCover.Framework.Symbols.CecilSymbolManager/<>c__DisplayClass27::<GetCyclomaticComplexityForToken>b__23(Mono.Cecil.MethodDefinition)
+
+
+
+
+
+
+
+
+
+
+ <PrivateImplementationDetails>{BCFABDBD-DD5B-464F-A402-8B01F8383263}
+
+
+
+ <>f__AnonymousType0`2
+
+
+ 100663567
+ System.Void <>f__AnonymousType0`2::.ctor(<module>j__TPar,<class>j__TPar)
+
+
+
+
+
+ 100663568
+ <module>j__TPar <>f__AnonymousType0`2::get_module()
+
+
+
+
+
+ 100663569
+ <class>j__TPar <>f__AnonymousType0`2::get_class()
+
+
+
+
+
+ 100663570
+ System.String <>f__AnonymousType0`2::ToString()
+
+
+
+
+
+ 100663571
+ System.Boolean <>f__AnonymousType0`2::Equals(System.Object)
+
+
+
+
+
+
+
+
+
+
+ 100663572
+ System.Int32 <>f__AnonymousType0`2::GetHashCode()
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build-support/tools/opencover/opencovertests64.cmd b/build-support/tools/opencover/opencovertests64.cmd
new file mode 100644
index 00000000..e37e10b7
--- /dev/null
+++ b/build-support/tools/opencover/opencovertests64.cmd
@@ -0,0 +1 @@
+..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console.exe OpenCover.Test.dll /noshadow
\ No newline at end of file
diff --git a/build-support/tools/opencover/partcover.cmd b/build-support/tools/opencover/partcover.cmd
new file mode 100644
index 00000000..87e9ea9f
--- /dev/null
+++ b/build-support/tools/opencover/partcover.cmd
@@ -0,0 +1 @@
+..\..\..\..\..\partcover.git\working\partcover.net4\main\bin\PartCover.exe --register --target ..\..\..\tools\NUnit-2.5.9.10348\bin\net-2.0\nunit-console-x86.exe --target-args "OpenCover.Test.dll /noshadow" --include [Open*]* --exclude [OpenCover.T*]* --output partcover.results.xml
diff --git a/build-support/tools/opencover/pedigree.cmd b/build-support/tools/opencover/pedigree.cmd
new file mode 100644
index 00000000..091a81d9
--- /dev/null
+++ b/build-support/tools/opencover/pedigree.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:user -target:dogfood.cmd -filter:+[OpenCover*]* -output:pedigree_results.xml
\ No newline at end of file
diff --git a/build-support/tools/opencover/report_coverage.cmd b/build-support/tools/opencover/report_coverage.cmd
new file mode 100644
index 00000000..50e3e186
--- /dev/null
+++ b/build-support/tools/opencover/report_coverage.cmd
@@ -0,0 +1 @@
+..\..\..\tools\ReportGenerator\ReportGenerator.exe opencovertests.xml report
\ No newline at end of file
diff --git a/build-support/tools/opencover/test.cmd b/build-support/tools/opencover/test.cmd
new file mode 100644
index 00000000..060bb53b
--- /dev/null
+++ b/build-support/tools/opencover/test.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:user -target:..\..\..\tools\NUnit-2.5.10.11092\bin\net-2.0\nunit-console-x86.exe -targetargs:"OpenCover.Test.dll /noshadow" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/x64/OpenCover.Profiler.dll b/build-support/tools/opencover/x64/OpenCover.Profiler.dll
new file mode 100644
index 00000000..2f25be6f
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Profiler.dll differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Profiler.exp b/build-support/tools/opencover/x64/OpenCover.Profiler.exp
new file mode 100644
index 00000000..4bf26787
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Profiler.exp differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Profiler.ilk b/build-support/tools/opencover/x64/OpenCover.Profiler.ilk
new file mode 100644
index 00000000..1cce58b8
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Profiler.ilk differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Profiler.lib b/build-support/tools/opencover/x64/OpenCover.Profiler.lib
new file mode 100644
index 00000000..e9ec4bb1
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Profiler.lib differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Profiler.pdb b/build-support/tools/opencover/x64/OpenCover.Profiler.pdb
new file mode 100644
index 00000000..012112f3
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Profiler.pdb differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Simple.Target.exe b/build-support/tools/opencover/x64/OpenCover.Simple.Target.exe
new file mode 100644
index 00000000..b6ce0bc9
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Simple.Target.exe differ
diff --git a/build-support/tools/opencover/x64/OpenCover.Simple.Target.pdb b/build-support/tools/opencover/x64/OpenCover.Simple.Target.pdb
new file mode 100644
index 00000000..0b27e9a3
Binary files /dev/null and b/build-support/tools/opencover/x64/OpenCover.Simple.Target.pdb differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Profiler.dll b/build-support/tools/opencover/x86/OpenCover.Profiler.dll
new file mode 100644
index 00000000..2f25be6f
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Profiler.dll differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Profiler.exp b/build-support/tools/opencover/x86/OpenCover.Profiler.exp
new file mode 100644
index 00000000..4bf26787
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Profiler.exp differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Profiler.ilk b/build-support/tools/opencover/x86/OpenCover.Profiler.ilk
new file mode 100644
index 00000000..1cce58b8
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Profiler.ilk differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Profiler.lib b/build-support/tools/opencover/x86/OpenCover.Profiler.lib
new file mode 100644
index 00000000..e9ec4bb1
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Profiler.lib differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Profiler.pdb b/build-support/tools/opencover/x86/OpenCover.Profiler.pdb
new file mode 100644
index 00000000..012112f3
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Profiler.pdb differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Simple.Target.exe b/build-support/tools/opencover/x86/OpenCover.Simple.Target.exe
new file mode 100644
index 00000000..b6ce0bc9
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Simple.Target.exe differ
diff --git a/build-support/tools/opencover/x86/OpenCover.Simple.Target.pdb b/build-support/tools/opencover/x86/OpenCover.Simple.Target.pdb
new file mode 100644
index 00000000..0b27e9a3
Binary files /dev/null and b/build-support/tools/opencover/x86/OpenCover.Simple.Target.pdb differ
diff --git a/build-support/tools/opencover/xunit.dll b/build-support/tools/opencover/xunit.dll
new file mode 100644
index 00000000..d44c478c
Binary files /dev/null and b/build-support/tools/opencover/xunit.dll differ
diff --git a/build-support/tools/opencover/xunit.opencover.cmd b/build-support/tools/opencover/xunit.opencover.cmd
new file mode 100644
index 00000000..a878667d
--- /dev/null
+++ b/build-support/tools/opencover/xunit.opencover.cmd
@@ -0,0 +1 @@
+OpenCover.Console.exe -register:administrator -target:"..\..\..\tools\xunit-1.8\xunit.console.clr4.x86.exe" -targetargs:"OpenCover.Test.dll /noshadow" -filter:"+[Open*]* -[OpenCover.T*]*" -output:opencovertests.xml
diff --git a/build-support/tools/opencover/xunit.xml b/build-support/tools/opencover/xunit.xml
new file mode 100644
index 00000000..ac112640
--- /dev/null
+++ b/build-support/tools/opencover/xunit.xml
@@ -0,0 +1,2439 @@
+
+
+
+ xunit
+
+
+
+
+ Contains various static methods that are used to verify that conditions are met during the
+ process of running tests.
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Verifies that a collection contains a given object.
+
+ The type of the object to be verified
+ The object expected to be in the collection
+ The collection to be inspected
+ Thrown when the object is not present in the collection
+
+
+
+ Verifies that a collection contains a given object, using an equality comparer.
+
+ The type of the object to be verified
+ The object expected to be in the collection
+ The collection to be inspected
+ The comparer used to equate objects in the collection with the expected object
+ Thrown when the object is not present in the collection
+
+
+
+ Verifies that a string contains a given sub-string, using the current culture.
+
+ The sub-string expected to be in the string
+ The string to be inspected
+ Thrown when the sub-string is not present inside the string
+
+
+
+ Verifies that a string contains a given sub-string, using the given comparison type.
+
+ The sub-string expected to be in the string
+ The string to be inspected
+ The type of string comparison to perform
+ Thrown when the sub-string is not present inside the string
+
+
+
+ Verifies that a collection does not contain a given object.
+
+ The type of the object to be compared
+ The object that is expected not to be in the collection
+ The collection to be inspected
+ Thrown when the object is present inside the container
+
+
+
+ Verifies that a collection does not contain a given object, using an equality comparer.
+
+ The type of the object to be compared
+ The object that is expected not to be in the collection
+ The collection to be inspected
+ The comparer used to equate objects in the collection with the expected object
+ Thrown when the object is present inside the container
+
+
+
+ Verifies that a string does not contain a given sub-string, using the current culture.
+
+ The sub-string which is expected not to be in the string
+ The string to be inspected
+ Thrown when the sub-string is present inside the string
+
+
+
+ Verifies that a string does not contain a given sub-string, using the current culture.
+
+ The sub-string which is expected not to be in the string
+ The string to be inspected
+ The type of string comparison to perform
+ Thrown when the sub-string is present inside the given string
+
+
+
+ Verifies that a block of code does not throw any exceptions.
+
+ A delegate to the code to be tested
+
+
+
+ Verifies that a collection is empty.
+
+ The collection to be inspected
+ Thrown when the collection is null
+ Thrown when the collection is not empty
+
+
+
+ Verifies that two objects are equal, using a default comparer.
+
+ The type of the objects to be compared
+ The expected value
+ The value to be compared against
+ Thrown when the objects are not equal
+
+
+
+ Verifies that two objects are equal, using a custom equatable comparer.
+
+ The type of the objects to be compared
+ The expected value
+ The value to be compared against
+ The comparer used to compare the two objects
+ Thrown when the objects are not equal
+
+
+
+ Verifies that two values are equal, within the number of decimal
+ places given by .
+
+ The expected value
+ The value to be compared against
+ The number of decimal places (valid values: 0-15)
+ Thrown when the values are not equal
+
+
+
+ Verifies that two values are equal, within the number of decimal
+ places given by .
+
+ The expected value
+ The value to be compared against
+ The number of decimal places (valid values: 0-15)
+ Thrown when the values are not equal
+
+
+ Do not call this method.
+
+
+
+ Verifies that the condition is false.
+
+ The condition to be tested
+ Thrown if the condition is not false
+
+
+
+ Verifies that the condition is false.
+
+ The condition to be tested
+ The message to show when the condition is not false
+ Thrown if the condition is not false
+
+
+
+ Verifies that a value is within a given range.
+
+ The type of the value to be compared
+ The actual value to be evaluated
+ The (inclusive) low value of the range
+ The (inclusive) high value of the range
+ Thrown when the value is not in the given range
+
+
+
+ Verifies that a value is within a given range, using a comparer.
+
+ The type of the value to be compared
+ The actual value to be evaluated
+ The (inclusive) low value of the range
+ The (inclusive) high value of the range
+ The comparer used to evaluate the value's range
+ Thrown when the value is not in the given range
+
+
+
+ Verifies that an object is of the given type or a derived type.
+
+ The type the object should be
+ The object to be evaluated
+ The object, casted to type T when successful
+ Thrown when the object is not the given type
+
+
+
+ Verifies that an object is of the given type or a derived type.
+
+ The type the object should be
+ The object to be evaluated
+ Thrown when the object is not the given type
+
+
+
+ Verifies that an object is not exactly the given type.
+
+ The type the object should not be
+ The object to be evaluated
+ Thrown when the object is the given type
+
+
+
+ Verifies that an object is not exactly the given type.
+
+ The type the object should not be
+ The object to be evaluated
+ Thrown when the object is the given type
+
+
+
+ Verifies that an object is exactly the given type (and not a derived type).
+
+ The type the object should be
+ The object to be evaluated
+ The object, casted to type T when successful
+ Thrown when the object is not the given type
+
+
+
+ Verifies that an object is exactly the given type (and not a derived type).
+
+ The type the object should be
+ The object to be evaluated
+ Thrown when the object is not the given type
+
+
+
+ Verifies that a collection is not empty.
+
+ The collection to be inspected
+ Thrown when a null collection is passed
+ Thrown when the collection is empty
+
+
+
+ Verifies that two objects are not equal, using a default comparer.
+
+ The type of the objects to be compared
+ The expected object
+ The actual object
+ Thrown when the objects are equal
+
+
+
+ Verifies that two objects are not equal, using a custom equality comparer.
+
+ The type of the objects to be compared
+ The expected object
+ The actual object
+ The comparer used to examine the objects
+ Thrown when the objects are equal
+
+
+
+ Verifies that a value is not within a given range, using the default comparer.
+
+ The type of the value to be compared
+ The actual value to be evaluated
+ The (inclusive) low value of the range
+ The (inclusive) high value of the range
+ Thrown when the value is in the given range
+
+
+
+ Verifies that a value is not within a given range, using a comparer.
+
+ The type of the value to be compared
+ The actual value to be evaluated
+ The (inclusive) low value of the range
+ The (inclusive) high value of the range
+ The comparer used to evaluate the value's range
+ Thrown when the value is in the given range
+
+
+
+ Verifies that an object reference is not null.
+
+ The object to be validated
+ Thrown when the object is not null
+
+
+
+ Verifies that two objects are not the same instance.
+
+ The expected object instance
+ The actual object instance
+ Thrown when the objects are the same instance
+
+
+
+ Verifies that an object reference is null.
+
+ The object to be inspected
+ Thrown when the object reference is not null
+
+
+
+ Verifies that the provided object raised INotifyPropertyChanged.PropertyChanged
+ as a result of executing the given test code.
+
+ The object which should raise the notification
+ The property name for which the notification should be raised
+ The test code which should cause the notification to be raised
+ Thrown when the notification is not raised
+
+
+
+ Verifies that two objects are the same instance.
+
+ The expected object instance
+ The actual object instance
+ Thrown when the objects are not the same instance
+
+
+
+ Verifies that the given collection contains only a single
+ element of the given type.
+
+ The collection.
+ The single item in the collection.
+ Thrown when the collection does not contain
+ exactly one element.
+
+
+
+ Verifies that the given collection contains only a single
+ element of the given value. The collection may or may not
+ contain other values.
+
+ The collection.
+ The value to find in the collection.
+ The single item in the collection.
+ Thrown when the collection does not contain
+ exactly one element.
+
+
+
+ Verifies that the given collection contains only a single
+ element of the given type.
+
+ The collection type.
+ The collection.
+ The single item in the collection.
+ Thrown when the collection does not contain
+ exactly one element.
+
+
+
+ Verifies that the given collection contains only a single
+ element of the given type which matches the given predicate. The
+ collection may or may not contain other values which do not
+ match the given predicate.
+
+ The collection type.
+ The collection.
+ The item matching predicate.
+ The single item in the filtered collection.
+ Thrown when the filtered collection does
+ not contain exactly one element.
+
+
+
+ Verifies that the exact exception is thrown (and not a derived exception type).
+
+ The type of the exception expected to be thrown
+ A delegate to the code to be tested
+ The exception that was thrown, when successful
+ Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown
+
+
+
+ Verifies that the exact exception is thrown (and not a derived exception type).
+ Generally used to test property accessors.
+
+ The type of the exception expected to be thrown
+ A delegate to the code to be tested
+ The exception that was thrown, when successful
+ Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown
+
+
+
+ Verifies that the exact exception is thrown (and not a derived exception type).
+
+ The type of the exception expected to be thrown
+ A delegate to the code to be tested
+ The exception that was thrown, when successful
+ Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown
+
+
+
+ Verifies that the exact exception is thrown (and not a derived exception type).
+ Generally used to test property accessors.
+
+ The type of the exception expected to be thrown
+ A delegate to the code to be tested
+ The exception that was thrown, when successful
+ Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown
+
+
+
+ Verifies that an expression is true.
+
+ The condition to be inspected
+ Thrown when the condition is false
+
+
+
+ Verifies that an expression is true.
+
+ The condition to be inspected
+ The message to be shown when the condition is false
+ Thrown when the condition is false
+
+
+
+ Used by the PropertyChanged.
+
+
+
+
+ Used by the Throws and DoesNotThrow methods.
+
+
+
+
+ Used by the Throws and DoesNotThrow methods.
+
+
+
+
+ This command sets up the necessary trace listeners and standard
+ output/error listeners to capture Assert/Debug.Trace failures,
+ output to stdout/stderr, and Assert/Debug.Write text. It also
+ captures any exceptions that are thrown and packages them as
+ FailedResults, including the possibility that the configuration
+ file is messed up (which is exposed when we attempt to manipulate
+ the trace listener list).
+
+
+
+
+ Base class used by commands which delegate to inner commands.
+
+
+
+
+ Interface which represents the ability to invoke of a test method.
+
+
+
+
+ Executes the test method.
+
+ The instance of the test class
+ Returns information about the test run
+
+
+
+ Creates the start XML to be sent to the callback when the test is about to start
+ running.
+
+ Return the of the start node, or null if the test
+ is known that it will not be running.
+
+
+
+ Gets the display name of the test method.
+
+
+
+
+ Determines if the test runner infrastructure should create a new instance of the
+ test class before running the test.
+
+
+
+
+ Determines if the test should be limited to running a specific amount of time
+ before automatically failing.
+
+ The timeout value, in milliseconds; if zero, the test will not have
+ a timeout.
+
+
+
+ Creates a new instance of the class.
+
+ The inner command to delegate to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Initializes a new instance of the
+ class.
+
+ The command that will be wrapped.
+ The test method.
+
+
+
+
+
+
+ Represents an implementation of to be used with
+ tests which are decorated with the .
+
+
+
+
+ Represents an xUnit.net test command.
+
+
+
+
+ The method under test.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The method under test.
+ The display name of the test.
+ The timeout, in milliseconds.
+
+
+
+
+
+
+
+
+
+
+
+
+ Gets the name of the method under test.
+
+
+
+
+
+
+
+
+
+
+ Gets the name of the type under test.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The test method.
+
+
+
+
+
+
+ Base class for exceptions that have actual and expected values
+
+
+
+
+ The base assert exception class
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The user message to be displayed
+
+
+
+ Initializes a new instance of the class.
+
+ The user message to be displayed
+ The inner exception
+
+
+
+ Initializes a new instance of the class.
+
+ The user message to be displayed
+ The stack trace to be displayed
+
+
+
+ Filters the stack trace to remove all lines that occur within the testing framework.
+
+ The original stack trace
+ The filtered stack trace
+
+
+
+ Gets a string representation of the frames on the call stack at the time the current exception was thrown.
+
+ A string that describes the contents of the call stack, with the most recent method call appearing first.
+
+
+
+ Gets the user message
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected value
+ The actual value
+ The user message to be shown
+
+
+
+ Creates a new instance of the class.
+
+ The expected value
+ The actual value
+ The user message to be shown
+ Set to true to skip the check for difference position
+
+
+
+ Gets the actual value.
+
+
+
+
+ Gets the expected value.
+
+
+
+
+ Gets a message that describes the current exception. Includes the expected and actual values.
+
+ The error message that explains the reason for the exception, or an empty string("").
+ 1
+
+
+
+ Exception thrown when a collection unexpectedly does not contain the expected value.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected object value
+
+
+
+ Creates a new instance of the class.
+
+ The expected object value
+ The actual value
+
+
+
+ Exception to be thrown from when the number of
+ parameter values does not the test method signature.
+
+
+
+
+
+
+
+
+
+
+ Exception thrown when code unexpectedly fails change a property.
+
+
+
+
+ Creates a new instance of the class. Call this constructor
+ when no exception was thrown.
+
+ The type of the exception that was expected
+
+
+
+ Exception thrown when the collection did not contain exactly one element.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The numbers of items in the collection.
+
+
+
+ Internal class used for version-resilient test runners. DO NOT CALL DIRECTLY.
+ Version-resilient runners should link against xunit.runner.utility.dll and use
+ ExecutorWrapper instead.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Exception thrown when the value is unexpectedly not of the given type or a derived type.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected type
+ The actual object value
+
+
+
+ Allows the user to record actions for a test.
+
+
+
+
+ Records any exception which is thrown by the given code.
+
+ The code which may thrown an exception.
+ Returns the exception that was thrown by the code; null, otherwise.
+
+
+
+ Records any exception which is thrown by the given code that has
+ a return value. Generally used for testing property accessors.
+
+ The code which may thrown an exception.
+ Returns the exception that was thrown by the code; null, otherwise.
+
+
+
+ Exception that is thrown when one or more exceptions are thrown from
+ the After method of a .
+
+
+
+
+ Initializes a new instance of the class.
+
+ The exceptions.
+
+
+
+ Initializes a new instance of the class.
+
+ The exceptions.
+
+
+
+ Gets the list of exceptions thrown in the After method.
+
+
+
+
+ Gets a message that describes the current exception.
+
+
+
+
+ Gets a string representation of the frames on the call stack at the time the current exception was thrown.
+
+
+
+
+ Implementation of which executes the
+ instances attached to a test method.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The inner command.
+ The method.
+
+
+
+ Executes the test method.
+
+ The instance of the test class
+ Returns information about the test run
+
+
+
+ This class supports the xUnit.net infrastructure and is not intended to be used
+ directly from your code.
+
+
+
+
+ This API supports the xUnit.net infrastructure and is not intended to be used
+ directly from your code.
+
+
+
+
+ This API supports the xUnit.net infrastructure and is not intended to be used
+ directly from your code.
+
+
+
+
+ This API supports the xUnit.net infrastructure and is not intended to be used
+ directly from your code.
+
+
+
+
+ Guard class, used for guard clauses and argument validation
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Base class which contains XML manipulation helper methods
+
+
+
+
+ Interface that represents a single test result.
+
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ The amount of time spent in execution
+
+
+
+
+ Adds the test execution time to the XML node.
+
+ The XML node.
+
+
+
+
+
+
+
+
+
+ Utility methods for dealing with exceptions.
+
+
+
+
+ Gets the message for the exception, including any inner exception messages.
+
+ The exception
+ The formatted message
+
+
+
+ Gets the stack trace for the exception, including any inner exceptions.
+
+ The exception
+ The formatted stack trace
+
+
+
+ Rethrows an exception object without losing the existing stack trace information
+
+ The exception to re-throw.
+
+ For more information on this technique, see
+ http://www.dotnetjunkies.com/WebLog/chris.taylor/archive/2004/03/03/8353.aspx
+
+
+
+
+ A dictionary which contains multiple unique values for each key.
+
+ The type of the key.
+ The type of the value.
+
+
+
+ Adds the value for the given key. If the key does not exist in the
+ dictionary yet, it will add it.
+
+ The key.
+ The value.
+
+
+
+ Removes all keys and values from the dictionary.
+
+
+
+
+ Determines whether the dictionary contains to specified key and value.
+
+ The key.
+ The value.
+
+
+
+ Calls the delegate once for each key/value pair in the dictionary.
+
+
+
+
+ Removes the given key and all of its values.
+
+
+
+
+ Removes the given value from the given key. If this was the
+ last value for the key, then the key is removed as well.
+
+ The key.
+ The value.
+
+
+
+ Gets the values for the given key.
+
+
+
+
+ Gets the count of the keys in the dictionary.
+
+
+
+
+ Gets the keys.
+
+
+
+
+
+
+
+ XML utility methods
+
+
+
+
+ Adds an attribute to an XML node.
+
+ The XML node.
+ The attribute name.
+ The attribute value.
+
+
+
+ Adds a child element to an XML node.
+
+ The parent XML node.
+ The child element name.
+ The new child XML element.
+
+
+
+ Exception that is thrown when a call to Debug.Assert() fails.
+
+
+
+
+ Creates a new instance of the class.
+
+ The original assert message
+
+
+
+ Creates a new instance of the class.
+
+ The original assert message
+ The original assert detailed message
+
+
+
+ Gets the original assert detailed message.
+
+
+
+
+ Gets the original assert message.
+
+
+
+
+ Gets a message that describes the current exception.
+
+
+
+
+ Exception thrown when a collection unexpectedly contains the expected value.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected object value
+
+
+
+ Exception thrown when code unexpectedly throws an exception.
+
+
+
+
+ Creates a new instance of the class.
+
+ Actual exception
+
+
+
+ Gets a string representation of the frames on the call stack at the time the current exception was thrown.
+
+ A string that describes the contents of the call stack, with the most recent method call appearing first.
+
+
+
+ Exception thrown when a collection is unexpectedly not empty.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Exception thrown when two values are unexpectedly not equal.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected object value
+ The actual object value
+
+
+
+ Creates a new instance of the class.
+
+ The expected object value
+ The actual object value
+ Set to true to skip the check for difference position
+
+
+
+ Exception thrown when a value is unexpectedly true.
+
+
+
+
+ Creates a new instance of the class.
+
+ The user message to be display, or null for the default message
+
+
+
+ Exception thrown when a value is unexpectedly not in the given range.
+
+
+
+
+ Creates a new instance of the class.
+
+ The actual object value
+ The low value of the range
+ The high value of the range
+
+
+
+ Gets the actual object value
+
+
+
+
+ Gets the high value of the range
+
+
+
+
+ Gets the low value of the range
+
+
+
+
+ Gets a message that describes the current exception.
+
+ The error message that explains the reason for the exception, or an empty string("").
+
+
+
+ Exception thrown when the value is unexpectedly of the exact given type.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected type
+ The actual object value
+
+
+
+ Exception thrown when the value is unexpectedly not of the exact given type.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected type
+ The actual object value
+
+
+
+ Used to decorate xUnit.net test classes that utilize fixture classes.
+ An instance of the fixture data is initialized just before the first
+ test in the class is run, and if it implements IDisposable, is disposed
+ after the last test in the class is run.
+
+ The type of the fixture
+
+
+
+ Called on the test class just before each test method is run,
+ passing the fixture data so that it can be used for the test.
+ All test runs share the same instance of fixture data.
+
+ The fixture data
+
+
+
+ Exception thrown when a value is unexpectedly in the given range.
+
+
+
+
+ Creates a new instance of the class.
+
+ The actual object value
+ The low value of the range
+ The high value of the range
+
+
+
+ Gets the actual object value
+
+
+
+
+ Gets the high value of the range
+
+
+
+
+ Gets the low value of the range
+
+
+
+
+ Gets a message that describes the current exception.
+
+ The error message that explains the reason for the exception, or an empty string("").
+
+
+
+ Base attribute which indicates a test method interception (allows code to be run before and
+ after the test is run).
+
+
+
+
+ This method is called after the test method is executed.
+
+ The method under test
+
+
+
+ This method is called before the test method is executed.
+
+ The method under test
+
+
+
+
+
+
+ Exception thrown when a collection is unexpectedly empty.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Exception thrown when two values are unexpectedly equal.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Exception thrown when an object is unexpectedly null.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Exception thrown when two values are unexpected the same instance.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Exception thrown when an object reference is unexpectedly not null.
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+
+ Command that automatically creates the instance of the test class
+ and disposes it (if it implements ).
+
+
+
+
+ Creates a new instance of the object.
+
+ The command that is bring wrapped
+ The method under test
+
+
+
+ Executes the test method. Creates a new instance of the class
+ under tests and passes it to the inner command. Also catches
+ any exceptions and converts them into s.
+
+ The instance of the test class
+ Returns information about the test run
+
+
+
+ Command used to wrap a which has associated
+ fixture data.
+
+
+
+
+ Creates a new instance of the class.
+
+ The inner command
+ The fixtures to be set on the test class
+
+
+
+ Sets the fixtures on the test class by calling SetFixture, then
+ calls the inner command.
+
+ The instance of the test class
+ Returns information about the test run
+
+
+
+ A timer class used to figure out how long tests take to run. On most .NET implementations
+ this will use the class because it's a high
+ resolution timer; however, on Silverlight/CoreCLR, it will use
+ (which will provide lower resolution results).
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Starts timing.
+
+
+
+
+ Stops timing.
+
+
+
+
+ Gets how long the timer ran, in milliseconds. In order for this to be valid,
+ both and must have been called.
+
+
+
+
+ Attribute used to decorate a test method with arbitrary name/value pairs ("traits").
+
+
+
+
+ Creates a new instance of the class.
+
+ The trait name
+ The trait value
+
+
+
+ Gets the trait name.
+
+
+
+
+
+
+
+ Gets the trait value.
+
+
+
+
+ Runner that executes an synchronously.
+
+
+
+
+ Execute the .
+
+ The test class command to execute
+ The methods to execute; if null or empty, all methods will be executed
+ The start run callback
+ The end run result callback
+ A with the results of the test run
+
+
+
+ Factory for objects, based on the type under test.
+
+
+
+
+ Creates the test class command, which implements , for a given type.
+
+ The type under test
+ The test class command, if the class is a test class; null, otherwise
+
+
+
+ Creates the test class command, which implements , for a given type.
+
+ The type under test
+ The test class command, if the class is a test class; null, otherwise
+
+
+
+ Represents an xUnit.net test class
+
+
+
+
+ Interface which describes the ability to executes all the tests in a test class.
+
+
+
+
+ Allows the test class command to choose the next test to be run from the list of
+ tests that have not yet been run, thereby allowing it to choose the run order.
+
+ The tests remaining to be run
+ The index of the test that should be run
+
+
+
+ Execute actions to be run after all the test methods of this test class are run.
+
+ Returns the thrown during execution, if any; null, otherwise
+
+
+
+ Execute actions to be run before any of the test methods of this test class are run.
+
+ Returns the thrown during execution, if any; null, otherwise
+
+
+
+ Enumerates the test commands for a given test method in this test class.
+
+ The method under test
+ The test commands for the given test method
+
+
+
+ Enumerates the methods which are test methods in this test class.
+
+ The test methods
+
+
+
+ Determines if a given refers to a test method.
+
+ The test method to validate
+ True if the method is a test method; false, otherwise
+
+
+
+ Gets the object instance that is under test. May return null if you wish
+ the test framework to create a new object instance for each test method.
+
+
+
+
+ Gets or sets the type that is being tested
+
+
+
+
+ Creates a new instance of the class.
+
+
+
+
+ Creates a new instance of the class.
+
+ The type under test
+
+
+
+ Creates a new instance of the class.
+
+ The type under test
+
+
+
+ Chooses the next test to run, randomly, using the .
+
+ The tests remaining to be run
+ The index of the test that should be run
+
+
+
+ Execute actions to be run after all the test methods of this test class are run.
+
+ Returns the thrown during execution, if any; null, otherwise
+
+
+
+ Execute actions to be run before any of the test methods of this test class are run.
+
+ Returns the thrown during execution, if any; null, otherwise
+
+
+
+ Enumerates the test commands for a given test method in this test class.
+
+ The method under test
+ The test commands for the given test method
+
+
+
+ Enumerates the methods which are test methods in this test class.
+
+ The test methods
+
+
+
+ Determines if a given refers to a test method.
+
+ The test method to validate
+ True if the method is a test method; false, otherwise
+
+
+
+ Gets the object instance that is under test. May return null if you wish
+ the test framework to create a new object instance for each test method.
+
+
+
+
+ Gets or sets the randomizer used to determine the order in which tests are run.
+
+
+
+
+ Sets the type that is being tested
+
+
+
+
+ Implementation of that represents a skipped test.
+
+
+
+
+ Creates a new instance of the class.
+
+ The method that is being skipped
+ The display name for the test. If null, the fully qualified
+ type name is used.
+ The reason the test was skipped.
+
+
+
+
+
+
+
+
+
+ Gets the skip reason.
+
+
+
+
+
+
+
+ Factory for creating objects.
+
+
+
+
+ Make instances of objects for the given class and method.
+
+ The class command
+ The method under test
+ The set of objects
+
+
+
+ A command wrapper which times the running of a command.
+
+
+
+
+ Creates a new instance of the class.
+
+ The command that will be timed.
+
+
+
+ Executes the inner test method, gathering the amount of time it takes to run.
+
+ Returns information about the test run
+
+
+
+ Wraps a command which should fail if it runs longer than the given timeout value.
+
+
+
+
+ Creates a new instance of the class.
+
+ The command to be run
+ The timout, in milliseconds
+ The method under test
+
+
+
+ Executes the test method, failing if it takes too long.
+
+ Returns information about the test run
+
+
+
+
+
+
+ Attributes used to decorate a test fixture that is run with an alternate test runner.
+ The test runner must implement the interface.
+
+
+
+
+ Creates a new instance of the class.
+
+ The class which implements ITestClassCommand and acts as the runner
+ for the test fixture.
+
+
+
+ Gets the test class command.
+
+
+
+
+ Exception thrown when two object references are unexpectedly not the same instance.
+
+
+
+
+ Creates a new instance of the class.
+
+ The expected object reference
+ The actual object reference
+
+
+
+ Contains the test results from an assembly.
+
+
+
+
+ Contains multiple test results, representing them as a composite test result.
+
+
+
+
+ Adds a test result to the composite test result list.
+
+
+
+
+
+ Gets the test results.
+
+
+
+
+ Creates a new instance of the class.
+
+ The filename of the assembly
+
+
+
+ Creates a new instance of the class.
+
+ The filename of the assembly
+ The configuration filename
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Gets the fully qualified filename of the configuration file.
+
+
+
+
+ Gets the directory where the assembly resides.
+
+
+
+
+ Gets the number of failed results.
+
+
+
+
+ Gets the fully qualified filename of the assembly.
+
+
+
+
+ Gets the number of passed results.
+
+
+
+
+ Gets the number of skipped results.
+
+
+
+
+ Contains the test results from a test class.
+
+
+
+
+ Creates a new instance of the class.
+
+ The type under test
+
+
+
+ Creates a new instance of the class.
+
+ The simple name of the type under test
+ The fully qualified name of the type under test
+ The namespace of the type under test
+
+
+
+ Sets the exception thrown by the test fixture.
+
+ The thrown exception
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Gets the fully qualified test fixture exception type, when an exception has occurred.
+
+
+
+
+ Gets the number of tests which failed.
+
+
+
+
+ Gets the fully qualified name of the type under test.
+
+
+
+
+ Gets the test fixture exception message, when an exception has occurred.
+
+
+
+
+ Gets the simple name of the type under test.
+
+
+
+
+ Gets the namespace of the type under test.
+
+
+
+
+ Gets the number of tests which passed.
+
+
+
+
+ Gets the number of tests which were skipped.
+
+
+
+
+ Gets the test fixture exception stack trace, when an exception has occurred.
+
+
+
+
+ Represents a failed test result.
+
+
+
+
+ Represents the results from running a test method
+
+
+
+
+ Initializes a new instance of the class. The traits for
+ the test method are discovered using reflection.
+
+ The method under test.
+ The display name for the test. If null, the fully qualified
+ type name is used.
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the method under test.
+ The type of the method under test.
+ The display name for the test. If null, the fully qualified
+ type name is used.
+ The traits.
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Gets or sets the display name of the method under test. This is the value that's shown
+ during failures and in the resulting output XML.
+
+
+
+
+ Gets the name of the method under test.
+
+
+
+
+ Gets or sets the standard output/standard error from the test that was captured
+ while the test was running.
+
+
+
+
+ Gets the traits attached to the test method.
+
+
+
+
+ Gets the name of the type under test.
+
+
+
+
+ Creates a new instance of the class.
+
+ The method under test
+ The exception throw by the test
+ The display name for the test. If null, the fully qualified
+ type name is used.
+
+
+
+ Creates a new instance of the class.
+
+ The name of the method under test
+ The name of the type under test
+ The display name of the test
+ The custom properties attached to the test method
+ The full type name of the exception throw
+ The exception message
+ The exception stack trace
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Gets the exception type thrown by the test method.
+
+
+
+
+ Gets the exception message thrown by the test method.
+
+
+
+
+ Gets the stack trace of the exception thrown by the test method.
+
+
+
+
+ Represents a passing test result.
+
+
+
+
+ Create a new instance of the class.
+
+ The method under test
+ The display name for the test. If null, the fully qualified
+ type name is used.
+
+
+
+ Create a new instance of the class.
+
+ The name of the method under test
+ The name of the type under test
+ The display name for the test. If null, the fully qualified
+ type name is used.
+ The custom properties attached to the test method
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Represents a skipped test result.
+
+
+
+
+ Creates a new instance of the class. Uses reflection to discover
+ the skip reason.
+
+ The method under test
+ The display name for the test. If null, the fully qualified
+ type name is used.
+ The reason the test was skipped.
+
+
+
+ Creates a new instance of the class.
+
+ The name of the method under test
+ The name of the type under test
+ The display name for the test. If null, the fully qualified
+ type name is used.
+ The traits attached to the method under test
+ The skip reason
+
+
+
+ Converts the test result into XML that is consumed by the test runners.
+
+ The parent node.
+ The newly created XML node.
+
+
+
+ Gets the skip reason.
+
+
+
+
+ Represents information about an attribute.
+
+
+
+
+ Gets the instance of the attribute, if available.
+
+ The type of the attribute
+ The instance of the attribute, if available.
+
+
+
+ Gets an initialized property value of the attribute.
+
+ The type of the property
+ The name of the property
+ The property value
+
+
+
+ Represents information about a method.
+
+
+
+
+ Creates an instance of the type where this test method was found. If using
+ reflection, this should be the ReflectedType.
+
+ A new instance of the type.
+
+
+
+ Gets all the custom attributes for the method that are of the given type.
+
+ The type of the attribute
+ The matching attributes that decorate the method
+
+
+
+ Determines if the method has at least one instance of the given attribute type.
+
+ The type of the attribute
+ True if the method has at least one instance of the given attribute type; false, otherwise
+
+
+
+ Invokes the test on the given class, with the given parameters.
+
+ The instance of the test class (may be null if
+ the test method is static).
+ The parameters to be passed to the test method.
+
+
+
+ Gets a value which represents the class that this method was
+ reflected from (i.e., equivalent to MethodInfo.ReflectedType)
+
+
+
+
+ Gets a value indicating whether the method is abstract.
+
+
+
+
+ Gets a value indicating whether the method is static.
+
+
+
+
+ Gets the underlying for the method, if available.
+
+
+
+
+ Gets the name of the method.
+
+
+
+
+ Gets the fully qualified type name of the return type.
+
+
+
+
+ Gets the fully qualified type name of the type that this method belongs to. If
+ using reflection, this should be the ReflectedType.
+
+
+
+
+ Represents information about a type.
+
+
+
+
+ Gets all the custom attributes for the type that are of the given attribute type.
+
+ The type of the attribute
+ The matching attributes that decorate the type
+
+
+
+ Gets a test method by name.
+
+ The name of the method
+ The method, if it exists; null, otherwise.
+
+
+
+ Gets all the methods
+
+
+
+
+
+ Determines if the type has at least one instance of the given attribute type.
+
+ The type of the attribute
+ True if the type has at least one instance of the given attribute type; false, otherwise
+
+
+
+ Determines if the type implements the given interface.
+
+ The type of the interface
+ True if the type implements the given interface; false, otherwise
+
+
+
+ Gets a value indicating whether the type is abstract.
+
+
+
+
+ Gets a value indicating whether the type is sealed.
+
+
+
+
+ Gets the underlying object, if available.
+
+
+
+
+ Utility class which inspects methods for test information
+
+
+
+
+ Gets the display name.
+
+ The method to be inspected
+ The display name
+
+
+
+ Gets the skip reason from a test method.
+
+ The method to be inspected
+ The skip reason
+
+
+
+ Gets the test commands for a test method.
+
+ The method to be inspected
+ The objects for the test method
+
+
+
+ Gets the timeout value for a test method.
+
+ The method to be inspected
+ The timeout, in milliseconds
+
+
+
+ Gets the traits on a test method.
+
+ The method to be inspected
+ A dictionary of the traits
+
+
+
+ Determines whether a test method has a timeout.
+
+ The method to be inspected
+ True if the method has a timeout; false, otherwise
+
+
+
+ Determines whether a test method has traits.
+
+ The method to be inspected
+ True if the method has traits; false, otherwise
+
+
+
+ Determines whether a test method should be skipped.
+
+ The method to be inspected
+ True if the method should be skipped; false, otherwise
+
+
+
+ Determines whether a method is a test method. A test method must be decorated
+ with the (or derived class) and must not be abstract.
+
+ The method to be inspected
+ True if the method is a test method; false, otherwise
+
+
+
+ Wrapper to implement and using reflection.
+
+
+
+
+ Converts an into an using reflection.
+
+
+
+
+
+
+ Converts a into an using reflection.
+
+ The method to wrap
+ The wrapper
+
+
+
+ Converts a into an using reflection.
+
+ The type to wrap
+ The wrapper
+
+
+
+ Utility class which inspects types for test information
+
+
+
+
+ Determines if a type contains any test methods
+
+ The type to be inspected
+ True if the class contains any test methods; false, otherwise
+
+
+
+ Retrieves the type to run the test class with from the , if present.
+
+ The type to be inspected
+ The type of the test class runner, if present; null, otherwise
+
+
+
+ Retrieves a list of the test methods from the test class.
+
+ The type to be inspected
+ The test methods
+
+
+
+ Determines if the test class has a applied to it.
+
+ The type to be inspected
+ True if the test class has a run with attribute; false, otherwise
+
+
+
+ Determines if the type implements .
+
+ The type to be inspected
+ True if the type implements ; false, otherwise
+
+
+
+ Determines whether the specified type is abstract.
+
+ The type.
+
+ true if the specified type is abstract; otherwise, false.
+
+
+
+
+ Determines whether the specified type is static.
+
+ The type.
+
+ true if the specified type is static; otherwise, false.
+
+
+
+
+ Determines if a class is a test class.
+
+ The type to be inspected
+ True if the type is a test class; false, otherwise
+
+
+
+ Attribute that is applied to a method to indicate that it is a fact that should be run
+ by the test runner. It can also be extended to support a customized definition of a
+ test method.
+
+
+
+
+ Creates instances of which represent individual intended
+ invocations of the test method.
+
+ The method under test
+ An enumerator through the desired test method invocations
+
+
+
+ Enumerates the test commands represented by this test method. Derived classes should
+ override this method to return instances of , one per execution
+ of a test method.
+
+ The test method
+ The test commands which will execute the test runs for the given method
+
+
+
+ Gets the name of the test to be used when the test is skipped. Defaults to
+ null, which will cause the fully qualified test name to be used.
+
+
+
+
+ Obsolete. Please use the property instead.
+
+
+
+
+ Marks the test so that it will not be run, and gets or sets the skip reason
+
+
+
+
+ Marks the test as failing if it does not finish running within the given time
+ period, in milliseconds; set to 0 or less to indicate the method has no timeout
+
+
+
+
+ Exception thrown when code unexpectedly fails to throw an exception.
+
+
+
+
+ Creates a new instance of the class. Call this constructor
+ when no exception was thrown.
+
+ The type of the exception that was expected
+
+
+
+ Creates a new instance of the class. Call this constructor
+ when an exception of the wrong type was thrown.
+
+ The type of the exception that was expected
+ The actual exception that was thrown
+
+
+
+ Gets a string representation of the frames on the call stack at the time the current exception was thrown.
+
+ A string that describes the contents of the call stack, with the most recent method call appearing first.
+
+
+
+ Exception thrown when a test method exceeds the given timeout value
+
+
+
+
+ Creates a new instance of the class.
+
+ The timeout value, in milliseconds
+
+
+
+ Exception thrown when a value is unexpectedly false.
+
+
+
+
+ Creates a new instance of the class.
+
+ The user message to be displayed, or null for the default message
+
+
+
diff --git a/common-project.include b/common-project.include
index b5bfe18a..1ba57e1a 100644
--- a/common-project.include
+++ b/common-project.include
@@ -183,14 +183,16 @@ ${current.bin.dir}: the binary directory to pick the assembly + app.config from
${project.name} : (optional), the name of the assembly
${tool.dir} : dir for tools
-->
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+