Top "Rhino-mocks" questions

Rhino.

How to throw exception in new rhino mocks 3.5

I am using rhino mocks 3.5 and am trying to throw an exception in my expectation to test some functionality in …

c# unit-testing testing rhino-mocks
RhinoMock vs. TypeMock vs. NUnit's Mocking?

I am just starting to do Test Driven Development, and I am wondering the major differences between RhinoMock, TypeMock, and …

unit-testing nunit mocking rhino-mocks typemock
How can I use Rhino Mocks to inspect what values were passed to a method

I'm new to mocking, and I'm having a hard time solving an issue with UnitTesting. Say I have this code: …

c# unit-testing mocking rhino-mocks
Using Rhino Mocks to mock an out parameter, which is created within the method I am testing

Trying to mock the following method: bool IsLoginValid(LoginViewModel viewModel, out User user); Tried this initially: dependency<ILoginService>() .…

rhino-mocks
How to set the Expect call to check that a method is not called in Rhino Mocks

Using Rhino Mocks, how do I ensure that a method is not called while setting up the Expectations on the …

c# unit-testing rhino-mocks
Mocking a private field

I know a similar question has been asked but I have not found a clear solution. I'm trying to mock …

c# unit-testing moq rhino-mocks nmock
Rhino mock vs Typemock vs JustMock vs

I need to choose mock framework to new project. What are the pros and cons for those frameworks? Any comparison …

moq rhino-mocks typemock justmock
How to mock a method call that takes a dynamic object

Say I have the following: public interface ISession { T Get<T>(dynamic filter); } } And I have the following …

c# mocking moq rhino-mocks
RhinoMock : Mocks Vs StrictMocks Vs DynamicMocks

I understand the difference between a Mock and a Stub. But different types of Mocks in RhinoMock framework confuses me. …

tdd rhino-mocks mocking
Rhino Mocks stubs and mocks are only good for interfaces?

Is it correct that Rhino Mocks stubs and mocks are only good for interfaces, not concrete classes? I spent quite …

.net unit-testing mocking rhino-mocks stubbing