
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
This solution contains samples for RhinoMock taken from the documentation : http://www.ayende.com/wiki/Rhino+Mocks+Documentation.ashx
Lot of examples written in the documentation comes from real project. For every one, I wrote the minimum implementation to compile and pass the test.
I wrote the implementation by using a syntax modern and the Arrange/Act/Assert pattern as well.
The library used to compile the project are in the directory lib. Currently, it's :
Remarks :
01-RhinoMocksIntroduction: RhinoMocksIntroductionTest.cs line 34 : You need to prefix the second param by ExpectedMessage=, required by Nunit 2.5.2
04-RhinoMocksOrderedUnordered RhinoMocksOrderedUnorderedTest.cs line 73 : Dispose is a method without return. Implementation change to be conform. line 59 : Whatever the implementation, I don't succeed to pass this test. I tried by deleting the Unordered calling and these methods calling, it works fine. Exception triggered : RhinoMocksIntroduction.RhinoMocksOrderedUnorderedTest.MovingFundsUsingTransactions: Rhino.Mocks.Exceptions.ExpectationViolationException : IDatabaseManager.Dispose(); Expected #0, Actual #1.
06-RhinoMocksEvents SubscribeToEventTest.cs line 44 : I changed the implementation of test VerifyingThatEventWasAttached_AAA. I am not very sure it's correct. If someone could verify.
07-RhinoMocksIEventRaiser : line 46 : We needs 2 params to raise an event
08-RhinoMocksProperties RhinoMocksPropertiesTest.cs Line 50 : Capacity property doesn't implement in IList, I used ArrayList as a Mocking Class
Fabien Arcellier
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.