annotate src/packages/Moq.4.1.1309.1617/Moq.4.1.1309.1617.nuspec @ 0:5bca2d201ad8

initial commit
author cin
date Sun, 24 Aug 2014 11:14:55 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5bca2d201ad8 initial commit
cin
parents:
diff changeset
1 <?xml version="1.0"?>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
2 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
5bca2d201ad8 initial commit
cin
parents:
diff changeset
3 <metadata>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
4 <id>Moq</id>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
5 <version>4.1.1309.1617</version>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
6 <title>Moq: an enjoyable mocking library</title>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
7 <authors>Daniel Cazzulino</authors>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
8 <owners>Daniel Cazzulino</owners>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
9 <licenseUrl>http://www.opensource.org/licenses/bsd-license.php</licenseUrl>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
10 <projectUrl>http://www.moqthis.com/</projectUrl>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
11 <requireLicenseAcceptance>false</requireLicenseAcceptance>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
12 <description>The most popular and friendly mocking framework for .NET</description>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
13 <releaseNotes>Version 4.1
5bca2d201ad8 initial commit
cin
parents:
diff changeset
14 * Added covariant IMock&lt;out T&gt; interface to Mock&lt;T&gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
15 * Added It.IsNotNull&lt;T&gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
16 * Fix: 'NullReferenceException when subscribing to an event'
5bca2d201ad8 initial commit
cin
parents:
diff changeset
17 * Added overloads to Verify to accept Times as a Method Group
5bca2d201ad8 initial commit
cin
parents:
diff changeset
18 * Feature request: It.IsIn(..), It.IsNotIn(...)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
19 * Corrected Verify method behavior for generic methods calls
5bca2d201ad8 initial commit
cin
parents:
diff changeset
20 * Differentiate verification error from mock crash
5bca2d201ad8 initial commit
cin
parents:
diff changeset
21 * Fix: Adding (and removing) handlers for events declared on interfaces works
5bca2d201ad8 initial commit
cin
parents:
diff changeset
22 when CallBase = true.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
23 * Update to latest Castle
5bca2d201ad8 initial commit
cin
parents:
diff changeset
24 * Fix: Mock.Of (Functional Syntax) doesn't work on properties with non-public setters
5bca2d201ad8 initial commit
cin
parents:
diff changeset
25 * Fix: Allow to use CallBase instead of Returns
5bca2d201ad8 initial commit
cin
parents:
diff changeset
26 * Fix: Solved Multi-threading issue - IndexOutOfRangeException
5bca2d201ad8 initial commit
cin
parents:
diff changeset
27 * Capability of mocking delegates (event handlers)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
28
5bca2d201ad8 initial commit
cin
parents:
diff changeset
29 Version 4.0
5bca2d201ad8 initial commit
cin
parents:
diff changeset
30 * Linq to Mocks: Mock.Of&lt;T&gt;(x =&gt; x.Id == 23 &amp;&amp; x.Title == "Rocks!")
5bca2d201ad8 initial commit
cin
parents:
diff changeset
31 * Fixed issues:
5bca2d201ad8 initial commit
cin
parents:
diff changeset
32 * 87 BadImageFormatException when using a mock with a Visual Studio generated Accessor object
5bca2d201ad8 initial commit
cin
parents:
diff changeset
33 * 166 Unable to use a delegate to mock a function that takes 5 or more parameters.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
34 * 168 Call count failure message never says which is the actual invocation count
5bca2d201ad8 initial commit
cin
parents:
diff changeset
35 * 175 theMock.Object failing on VS2010 Beta 1
5bca2d201ad8 initial commit
cin
parents:
diff changeset
36 * 177 Generic constraint on interface method causes BadImageFormatException when getting Object.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
37 * 183 Display what invocations were recieved when the expected one hasn't been met
5bca2d201ad8 initial commit
cin
parents:
diff changeset
38 * 186 Methods that are not virtual gives non-sense-exception message
5bca2d201ad8 initial commit
cin
parents:
diff changeset
39 * 188 More Callback Overloads
5bca2d201ad8 initial commit
cin
parents:
diff changeset
40 * 199 Simplify SetupAllProperties implementation to simply iterate and call SetupProperty
5bca2d201ad8 initial commit
cin
parents:
diff changeset
41 * 200 Fluent mock does not honor parent mock CallBase setting.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
42 * 202 Mock.Protected().Expect() deprecated with no work-around
5bca2d201ad8 initial commit
cin
parents:
diff changeset
43 * 204 Allow default return values to be specified (per-mock)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
44 * 205 Error calling SetupAllProperties for Mock&lt;IDataErrorInfo&gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
45 * 206 Linq-to-Mocks Never Returns on Implicit Boolean Property
5bca2d201ad8 initial commit
cin
parents:
diff changeset
46 * 207 NullReferenceException thrown when using Mocks.CreateQuery with implicit boolean expression
5bca2d201ad8 initial commit
cin
parents:
diff changeset
47 * 208 Can't setup a mock for method that accept lambda expression as argument.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
48 * 211 SetupAllProperties should return the Mock&lt;T&gt; instead of void.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
49 * 223 When a method is defined to make the setup an asserts mock fails
5bca2d201ad8 initial commit
cin
parents:
diff changeset
50 * 226 Can't raise events on mocked Interop interfaces
5bca2d201ad8 initial commit
cin
parents:
diff changeset
51 * 229 CallBase is not working for virtual events
5bca2d201ad8 initial commit
cin
parents:
diff changeset
52 * 238 Moq fails to mock events defined in F#
5bca2d201ad8 initial commit
cin
parents:
diff changeset
53 * 239 Use Func instead of Predicate
5bca2d201ad8 initial commit
cin
parents:
diff changeset
54 * 250 4.0 Beta 2 regression - cannot mock MethodInfo when targetting .NET 4
5bca2d201ad8 initial commit
cin
parents:
diff changeset
55 * 251 When a generic interface also implements a non-generic version, Verify does not work in some cases
5bca2d201ad8 initial commit
cin
parents:
diff changeset
56 * 254 Unable to create mock of EnvDTE.DTE
5bca2d201ad8 initial commit
cin
parents:
diff changeset
57 * 261 Can not use protected setter in public property
5bca2d201ad8 initial commit
cin
parents:
diff changeset
58 * 267 Generic argument as dependency for method Setup overrides all previous method setups for a given method
5bca2d201ad8 initial commit
cin
parents:
diff changeset
59 * 273 Attempting to create a mock thrown a Type Load exception. The message refers to an inaccessible interface.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
60 * 276 .Net 3.5 no more supported
5bca2d201ad8 initial commit
cin
parents:
diff changeset
61
5bca2d201ad8 initial commit
cin
parents:
diff changeset
62 Version 3.0
5bca2d201ad8 initial commit
cin
parents:
diff changeset
63
5bca2d201ad8 initial commit
cin
parents:
diff changeset
64 * Silverlight support! Finally integrated Jason's Silverlight contribution! Issue #73
5bca2d201ad8 initial commit
cin
parents:
diff changeset
65 * Brand-new simplified event raising syntax (#130): mock.Raise(foo =&gt; foo.MyEvent += null, new MyArgs(...));
5bca2d201ad8 initial commit
cin
parents:
diff changeset
66 * Support for custom event signatures (not compatible with EventHandler): mock.Raise(foo =&gt; foo.MyEvent += null, arg1, arg2, arg3);
5bca2d201ad8 initial commit
cin
parents:
diff changeset
67 * Substantially improved property setter behavior: mock.VerifySet(foo =&gt; foo.Value = "foo"); //(also available for SetupSet
5bca2d201ad8 initial commit
cin
parents:
diff changeset
68 * Renamed Expect* with Setup*
5bca2d201ad8 initial commit
cin
parents:
diff changeset
69 * Vastly simplified custom argument matchers: public int IsOdd() &lt; return Match&lt;int&gt;.Create(v =&gt; i % 2 == 0); &gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
70 * Added support for verifying how many times a member was invoked: mock.Verify(foo =&gt; foo.Do(), Times.Never());
5bca2d201ad8 initial commit
cin
parents:
diff changeset
71 * Added simple sample app named StoreSample
5bca2d201ad8 initial commit
cin
parents:
diff changeset
72 * Moved Stub functionality to the core API (SetupProperty and SetupAllProperties)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
73 * Fixed sample ASP.NET MVC app to work with latest version
5bca2d201ad8 initial commit
cin
parents:
diff changeset
74 * Allow custom matchers to be created with a substantially simpler API
5bca2d201ad8 initial commit
cin
parents:
diff changeset
75 * Fixed issue #145 which prevented discrimination of setups by generic method argument types
5bca2d201ad8 initial commit
cin
parents:
diff changeset
76 * Fixed issue #141 which prevented ref arguments matching value types (i.e. a Guid)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
77 * Implemented improvement #131: Add support for It.IsAny and custom argument matchers for SetupSet/VerifySet
5bca2d201ad8 initial commit
cin
parents:
diff changeset
78 * Implemented improvement #124 to render better error messages
5bca2d201ad8 initial commit
cin
parents:
diff changeset
79 * Applied patch from David Kirkland for improvement #125 to improve matching of enumerable parameters
5bca2d201ad8 initial commit
cin
parents:
diff changeset
80 * Implemented improvement #122 to provide custom errors for Verify
5bca2d201ad8 initial commit
cin
parents:
diff changeset
81 * Implemented improvement #121 to provide null as default value for Nullable&lt;T&gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
82 * Fixed issue #112 which fixes passing a null argument to a mock constructor
5bca2d201ad8 initial commit
cin
parents:
diff changeset
83 * Implemented improvement #111 to better support params arguments
5bca2d201ad8 initial commit
cin
parents:
diff changeset
84 * Fixed bug #105 about improperly overwriting setups for property getter and setter
5bca2d201ad8 initial commit
cin
parents:
diff changeset
85 * Applied patch from Ihar.Bury for issue #99 related to protected expectations
5bca2d201ad8 initial commit
cin
parents:
diff changeset
86 * Fixed issue #97 on not being able to use SetupSet/VerifySet if property did not have a getter
5bca2d201ad8 initial commit
cin
parents:
diff changeset
87 * Better integration with Pex (http://research.microsoft.com/en-us/projects/Pex/)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
88 * Various other minor fixes (#134, #135, #137, #138, #140, etc.)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
89
5bca2d201ad8 initial commit
cin
parents:
diff changeset
90
5bca2d201ad8 initial commit
cin
parents:
diff changeset
91 Version 2.6
5bca2d201ad8 initial commit
cin
parents:
diff changeset
92
5bca2d201ad8 initial commit
cin
parents:
diff changeset
93 * Implemented Issue #55: We now provide a mock.DefaultValue = [DefaultValue.Empty | DefaultValue.Mock] which will provide the current behavior (default) or mocks for mockeable return types for loose mock invocations without expectations.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
94 * Added support for stubbing properties from moq-contrib: now you can do mock.Stub(m =&gt; m.Value) and add stub behavior to the property. mock.StubAll() is also provided. This integrates with the DefaultValue behavior too, so you can stub entire hierarchies :).
5bca2d201ad8 initial commit
cin
parents:
diff changeset
95 * Added support for mocking methods with out and ref parameters (Issue #50)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
96 * Applied patch contributed by slava for Issue #72: add support to limit numbor of calls on mocked method (we now have mock.Expect(...).AtMost(5))
5bca2d201ad8 initial commit
cin
parents:
diff changeset
97 * Implemented Issue #94: Easier setter verification: Now we support ExpectSet(m = m.Value, "foo") and VerifySet(m = m.Value, 5) (Thanks ASP.NET MVC Team!)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
98 * Implemented issue #96: Automatically chain mocks when setting expectations. It's now possible to specify expectations for an entire hierarchy of objects just starting from the root mock. THIS IS REALLY COOL!!!
5bca2d201ad8 initial commit
cin
parents:
diff changeset
99 * Fixed Issue #89: Expects() does not always return last expectation
5bca2d201ad8 initial commit
cin
parents:
diff changeset
100 * Implemented Issue 91: Expect a method/property to never be called (added Never() method to an expectation. Can be used on methods, property getters and setters)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
101 * Fixed Issue 86: IsAny&lt;T&gt; should check if the value is actually of type T
5bca2d201ad8 initial commit
cin
parents:
diff changeset
102 * Fixed Issue 88: Cannot mock protected internal virtual methods using Moq.Protected
5bca2d201ad8 initial commit
cin
parents:
diff changeset
103 * Fixed Issue 90: Removing event handlers from mocked objects
5bca2d201ad8 initial commit
cin
parents:
diff changeset
104 * Updated demo and added one more test for the dynamic addition of interfaces
5bca2d201ad8 initial commit
cin
parents:
diff changeset
105
5bca2d201ad8 initial commit
cin
parents:
diff changeset
106 Version 2.5
5bca2d201ad8 initial commit
cin
parents:
diff changeset
107
5bca2d201ad8 initial commit
cin
parents:
diff changeset
108 * Added support for mocking protected members
5bca2d201ad8 initial commit
cin
parents:
diff changeset
109 * Added new way of extending argument matchers which is now very straightforward
5bca2d201ad8 initial commit
cin
parents:
diff changeset
110 * Added support for mocking events
5bca2d201ad8 initial commit
cin
parents:
diff changeset
111 * Added support for firing events from expectations
5bca2d201ad8 initial commit
cin
parents:
diff changeset
112 * Removed usage of MBROs which caused inconsistencies in mocking features
5bca2d201ad8 initial commit
cin
parents:
diff changeset
113 * Added ExpectGet and ExpectSet to better support properties, and provide better intellisense.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
114 * Added verification with expressions, which better supports Arrange-Act-Assert testing model (can do Verify(m =&gt; m.Do(...)))
5bca2d201ad8 initial commit
cin
parents:
diff changeset
115 * Added Throws&lt;TException&gt;
5bca2d201ad8 initial commit
cin
parents:
diff changeset
116 * Added mock.CallBase property to specify whether the virtual members base implementation should be called
5bca2d201ad8 initial commit
cin
parents:
diff changeset
117 * Added support for implementing and setting expectations and verifying additional interfaces in the mock, via the new mock.As&lt;TInterface&gt;() method (thanks Fernando Simonazzi!)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
118 * Improved argument type matching for Is/IsAny (thanks Jeremy.Skinner!)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
119
5bca2d201ad8 initial commit
cin
parents:
diff changeset
120
5bca2d201ad8 initial commit
cin
parents:
diff changeset
121 Version 2.0
5bca2d201ad8 initial commit
cin
parents:
diff changeset
122
5bca2d201ad8 initial commit
cin
parents:
diff changeset
123 * Refactored fluent API on mocks. This may cause some existing tests to fail, but the fix is trivial (just reorder the calls to Callback, Returns and Verifiable)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
124 * Added support for retrieving a Mock&lt;T&gt; from a T instance created by a mock.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
125 * Added support for retrieving the invocation arguments from a Callback or Returns.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
126 * Implemented AtMostOnce() constraint
5bca2d201ad8 initial commit
cin
parents:
diff changeset
127 * Added support for creating MBROs with protected constructors
5bca2d201ad8 initial commit
cin
parents:
diff changeset
128 * Loose mocks now return default empty arrays and IEnumerables instead of nulls
5bca2d201ad8 initial commit
cin
parents:
diff changeset
129
5bca2d201ad8 initial commit
cin
parents:
diff changeset
130
5bca2d201ad8 initial commit
cin
parents:
diff changeset
131 Version 1.5.1
5bca2d201ad8 initial commit
cin
parents:
diff changeset
132
5bca2d201ad8 initial commit
cin
parents:
diff changeset
133 * Refactored MockFactory to make it simpler and more explicit to use with regards to verification. Thanks Garry Shutler for the feedback!
5bca2d201ad8 initial commit
cin
parents:
diff changeset
134
5bca2d201ad8 initial commit
cin
parents:
diff changeset
135 Version 1.5
5bca2d201ad8 initial commit
cin
parents:
diff changeset
136
5bca2d201ad8 initial commit
cin
parents:
diff changeset
137 * Added MockFactory to allow easy construction of multiple mocks with the same behavior and verification
5bca2d201ad8 initial commit
cin
parents:
diff changeset
138
5bca2d201ad8 initial commit
cin
parents:
diff changeset
139 Version 1.4
5bca2d201ad8 initial commit
cin
parents:
diff changeset
140
5bca2d201ad8 initial commit
cin
parents:
diff changeset
141 * Added support for passing constructor arguments for mocked classes.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
142 * Improved code documentation
5bca2d201ad8 initial commit
cin
parents:
diff changeset
143
5bca2d201ad8 initial commit
cin
parents:
diff changeset
144 Version 1.3
5bca2d201ad8 initial commit
cin
parents:
diff changeset
145
5bca2d201ad8 initial commit
cin
parents:
diff changeset
146 * Added support for overriding expectations set previously on a Mock. Now adding a second expectation for the same method/property call will override the existing one. This facilitates setting up default expectations in a fixture setup and overriding when necessary in a specific test.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
147 * Added support for mock verification. Both Verify and VerifyAll are provided for more flexibility (the former only verifies methods marked Verifiable)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
148
5bca2d201ad8 initial commit
cin
parents:
diff changeset
149 Version 1.2
5bca2d201ad8 initial commit
cin
parents:
diff changeset
150
5bca2d201ad8 initial commit
cin
parents:
diff changeset
151 * Added support for MockBehavior mock constructor argument to affect the way the mocks expect or throw on calls.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
152
5bca2d201ad8 initial commit
cin
parents:
diff changeset
153 Version 1.1
5bca2d201ad8 initial commit
cin
parents:
diff changeset
154
5bca2d201ad8 initial commit
cin
parents:
diff changeset
155 * Merged branch for dynamic types. Now Moq is based on Castle DynamicProxy2 to support a wider range of mock targets.
5bca2d201ad8 initial commit
cin
parents:
diff changeset
156 * Added ILMerge so that Castle libraries are merged into Moq assembly (no need for external references and avoid conflicts)
5bca2d201ad8 initial commit
cin
parents:
diff changeset
157
5bca2d201ad8 initial commit
cin
parents:
diff changeset
158 Version 1.0
5bca2d201ad8 initial commit
cin
parents:
diff changeset
159
5bca2d201ad8 initial commit
cin
parents:
diff changeset
160 * Initial release, initial documentation process in place, etc.</releaseNotes>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
161 <tags>tdd mocking mocks unittesting agile</tags>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
162 </metadata>
5bca2d201ad8 initial commit
cin
parents:
diff changeset
163 </package>