nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02144
[Bug 894842] Re: DynamicMock error
NUnit 3.0 does not have a mock library at all. Is this really a report
against the nunitv2 project rather than nunit-3.0?
Therefore, for nunit 3.0, I'm marking this Invalid. If it were for
nunitv2, I'd mark it as Won't Fix, which is basically the same result
for you.
Why?
1. The kind of problems you describe are intrinsic to any mock framework that uses strings to represent methods.
2. The NUnit (2.0) mock framework has always been presented as a simple program for use in learning, and is definitely NOT recommended for any sort of production use.
3. Because NUnit Mocks has never been intended as a serious mock framework and because there are several very serious mock frameworks available, NUnit Mocks is no longer being provided starting with 3.0. In fact, NUnit 2.5.10 no longer uses NUnit mocks
for its own testing - we now use NSubstitute.
Charlie
** Changed in: nunit-3.0
Status: New => Invalid
--
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
https://bugs.launchpad.net/bugs/894842
Title:
DynamicMock error
Status in NUnit Test Framework:
Invalid
Bug description:
If we call
mock.ExpectNoCall("NotExistingFunction");
no error is reported, even if the function not exists.
In my eyeys this is a bug.
Other methods like Expect doesn't check the existence of the methode
name, too. I think this is the first thing they must do and report an
error like: method "NotExistingFunction" does not exist.
By the way: I am not pleased with the check result if the test fails.
It should report at least one function that is not called or a
function that is called but was not expected.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunit-3.0/+bug/894842/+subscriptions
References