Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does NSubstitute support the idea of Partial Mocks?

Does NSubstitute support the idea of Partial Mocks?

http://nsubstitute.github.com/

http://www.ayende.com/wiki/Rhino+Mocks+Partial+Mocks.ashx

like image 489
Simon Avatar asked Jan 05 '11 04:01

Simon


2 Answers

Update: As @Brian points out, NSubstitute 1.7+ supports partial mocks

Original answer:

Not as of v1.0.

It is something we're considering for vNext. If you have specific syntax ideas or requirements please post to the user group. I've added an issue for this to the issue log, so you could also add details there.

like image 118
David Tchepak Avatar answered Sep 28 '22 09:09

David Tchepak


Yes! This feature was introduced in version 1.7.0 (released January 2014).

http://nsubstitute.github.io/help/partial-subs/

like image 34
Brian Hinchey Avatar answered Sep 28 '22 09:09

Brian Hinchey