Yes, it is possible, but string-based implementations usually don't do it because there are cleaner approaches that get rid of the strings entirely, making refactoring better. For example, see NSubstitute or Moq. We use NSubstitute.
Unfortunately, it's a major effort to develop and maintain a mock framework and also a major effort to develop and maintain a testing framework. Since we are a testing framework, we'll let others concentrate on the mocking. Charlie -- 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 _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : [email protected] Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp

