David Tchepak
5e34e1b701
Adding call base exclusions (When..DoNotCallBase)
2014-01-01 16:25:57 +11:00
David Tchepak
d426c93754
In progress, removing CallBase()
2013-12-03 15:30:26 +11:00
David Tchepak
33679acfdd
Spiking Substitute.ForPartsOf<T>
...
Renabling @alexandrnikitin's initial call base by default idea to
see if it better fits the examples I'm seeing.
Adding basic Maybe type, as no one should have to code without one.
TODO:
- decide whether to remove explicit CallBase option
- enable DoNotCallBase() for void calls? When().DoNotCallBase()?
- add overloads for Substitute.ForPartsOf.
- throw on Substitute.ForPartsOf if an interface is given
2013-12-03 15:30:25 +11:00
mrinaldi1
454426027d
Fixed issue with method with sealed class return type
2013-12-03 13:01:07 +11:00
David Tchepak
87dfb0ca5b
Moving classes to .Core that are not intended for direct use
2013-11-13 21:52:40 +11:00
David Tchepak
d4551b8460
Adding some more tests for #114
2013-11-13 21:47:25 +11:00
David Tchepak
91ddfe3d44
Updating changelog with fixes for #111 and #114
2013-11-13 21:29:36 +11:00
Peter Wiles
768a49a05f
Fixed issue #114 : Args matches with optional parameters broken
2013-11-13 21:06:22 +11:00
Kevin Bosman
340733cfef
#111 - rename tests to match style of other FieldReports
...
* add additional tests for Returns() and Received()
2013-11-13 20:53:23 +11:00
Kevin Bosman
0432d20a54
#111 Fix Arg.Any matches for ref and out params
2013-11-13 20:52:35 +11:00
David Tchepak
bd80dd2d81
Updating to Castle.Core 3.2.1.
...
May help #76
2013-10-26 20:23:52 +11:00
Robert Moore
3ed73dd540
Added documentation for the changes that were made in the last commit
2013-10-24 21:35:12 +08:00
Robert Moore
969cce38de
Excluded static methods when determining if a type is pure virtual ( Fixes #118 )
...
Also added a (already passing) test that checks that a substitute for a concrete with a static method can setup a return value to improve coverage of this type of class
2013-10-24 21:34:58 +08:00
Robert Moore
9ebc8b1981
Adding breaking test for #118 (an issue after adding a public static method to a concrete class that is being mocked)
2013-10-23 22:19:41 +08:00
David Tchepak
526e91d7f1
Adding partial substitute examples
2013-10-22 11:25:23 +11:00
David Tchepak
abee0831d7
Ensuring base method is only evaluated once per call
2013-08-02 22:07:59 +10:00
Alexandr Nikitin
5de8edf0b5
I changed the api to sub.DoSomething().Returns(x => x.CallBase())
2013-08-02 22:07:58 +10:00
David Tchepak
b3ae935769
Spiking configuring CallBase using returns
2013-07-21 22:08:30 +10:00
David Tchepak
a30ca18ea1
Throw on attempt to call base on non-virtual
...
Throwing CouldNotCallBaseException as soon as abstract/final member is
called.
Removing tests that attempt to configure non-virtual members.
2013-07-21 18:48:10 +10:00
David Tchepak
1f1fbe7ff5
Moving CallBaseFor tests from SubstituteExtensions to top level acceptance test
2013-07-21 18:09:16 +10:00
David Tchepak
4a57d0bdd0
Reverting ThatCallsBase option until we clarify requirement and syntax
2013-07-21 18:01:08 +10:00
Alexandr Nikitin
ff82035229
Partial subs. #41 #93
...
[dave@davesquared.net: squashed into single commit for easier rebase]
2013-07-21 16:51:04 +10:00
David Tchepak
9509dae3ed
Marking Issue_ArgumentCheckOfOptionalParameter as [Pending] test
2013-07-09 08:32:26 +10:00
Alexandr Nikitin
109a9ca13f
add a unit test for PossibleIssue_ArgumentCheckOfOptionalParameter
2013-07-08 23:17:25 +03:00
David Tchepak
55a8e391af
Updating to Castle.Core.3.2.0 (from 3.1.0)
2013-06-30 21:42:45 +10:00
David Tchepak
49f5793ee1
updating nuget
2013-06-30 20:54:31 +10:00
David Tchepak
1f9a8c321c
Website update for 1.6.1
2013-06-30 20:46:04 +10:00
David Tchepak
0a5895de98
Updating changelog for 1.6.1 release
2013-06-30 20:31:34 +10:00
David Tchepak
f365f741dd
Update changelog
2013-06-29 21:13:53 +10:00
Alexandr Nikitin
4545d13c8a
Replace PreserveStackTrace method implementation ( #110 )
...
Based on: http://stackoverflow.com/a/9989557/906
2013-06-29 19:00:35 +10:00
David Tchepak
40eb423452
Adding repro for #110
...
Currently fails due to lack of protected serialisation ctor.
2013-06-04 23:23:28 +10:00
David Tchepak
bd3008964b
Updating ReceivedCalls() test to check order in which calls are returned.
2013-05-02 14:43:06 +10:00
David Tchepak
9cc2abcd0b
Updating CHANGELOG with mismatch detection fix.
2013-05-02 14:40:35 +10:00
David Tchepak
0ce69f3af2
Implementing basic detection of type mismatches for Returns().
2013-04-26 14:16:13 +10:00
David Tchepak
b29d08bb55
Add pending test for detecting reentrant sub calls in Returns
2013-04-23 16:46:42 +10:00
David Tchepak
b90a22470e
Linking to relevant section of return-from-function page from callbacks page
2013-04-19 23:59:57 +10:00
David Tchepak
8ca20c5beb
Updating nuget.exe.
2013-04-19 23:57:06 +10:00
David Tchepak
02a19d3b55
Updating site for 1.6.0 release distribution
2013-04-19 22:55:05 +10:00
David Tchepak
6f04802f28
Updating changelog for 1.6.0 release
2013-04-19 22:28:33 +10:00
David Tchepak
2b4248cad7
Adding documentation for checking event subscriptions ( #107 )
2013-04-19 22:14:05 +10:00
David Tchepak
1f3595abd6
Updating documentation to include AndDoes.
2013-04-19 21:46:48 +10:00
David Tchepak
bb145be305
Playing around with the wording of xmldoc comments.
2013-04-08 22:24:42 +10:00
David Gardiner
ab49b59631
XML comments for public methods
...
in SubstituteExtensions
2013-03-08 15:37:09 +10:30
David Tchepak
04b0786f70
Adding .AndDoes() option to Returns() and cleaning up SubState
...
- Returns() and co. now return ConfiguredCall objs, so additional
call configs can be made like .AndDoes(...) for callbacks.
- Removing properties in SubstituteState that are actually stateless
dependencies.
- Removing CallSpecFactory creation cruft from SubstituteState
Yes, a factory factory. No, I'm not proud.
- Renamed IResultSetter to IConfigureCall
Handles configuring results and actions for calls/call specs.
- Splitting call spec retrieval logic out from ConfigureCall to new class.
GetCallSpec now holds logic of how to get call spec from last call and
pending call spec.
2013-02-27 23:04:19 +11:00
Eric Winkler
d76233c197
Fixed handling of value-type params array parameters
2013-02-09 14:37:50 +08:00
Eric Winkler
1ec7690d0b
Added tests for receiving calls with params-array parameters
2013-02-09 14:30:32 +08:00
Eric Winkler
53ebc1678d
Renamed IEngine -> ICar to better suit method naming analogy
2013-02-09 13:28:27 +08:00
Johan Appelgren
5b480271e2
Adding UIPermissionAttribute to AttributesToAvoidReplicating used with Castle Dynamic Proxy.
...
To make it possible to substitute interfaces that exposes methods or
properties that uses System.Windows.IDataObject.
2013-02-05 10:40:44 +01:00
David Tchepak
5c40c7baa8
Updating website for release 1.5.0.
2013-01-25 22:54:49 +11:00
David Tchepak
bb72dbd632
Updating changelog and breakingchanges for release of v1.5.0
2013-01-25 22:33:05 +11:00