🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

github.com/ayende/rhino-mocks

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ayende/rhino-mocks

Source
Go
Version
v0.0.0-20170127212104-d4a046bdacdd
Version published
Created
Source

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 :

  • nunit 2.5.2
  • RhinoMock 3.6

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

Package last updated on 27 Jan 2017

Did you know?

Socket

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.

Install

Related posts