nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02143
[Bug 894842] [NEW] DynamicMock error
Public bug reported:
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.
** Affects: nunit-3.0
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References