I am very new to Testing. I am trying to understand how can I unit test since I do not really need to actually trigger these services but probably moc ...
I am very new to Testing. I am trying to understand how can I unit test since I do not really need to actually trigger these services but probably moc ...
I am trying to unit test a command execution for a command that displays a dialog, however I keep getting NullReferenceException and I do not know why ...
Is it possible to set a "default" return value for a RhinoMock stub? For ex: I have a method that takes in an int from 1-175 and returns a bool: I ...
I'm using a third party library which has some classes I'm trying to mock using Rhino Mocks. When I attempt to create a stub for a class, I'm getting ...
I am trying to replace this Rhino Mocks implementation: with the following Moq implementation: The problem is, my Moq implementation is not rece ...
I have a piece of code from an old book on MVVM which works, but a test using Rhino Mocks fails with this message: Test method TestProject.UnitTes ...
I have two interfaces: My test object uses an ITimeframeFactory to create several ITimeframes. To test my TestObject, I give it a mocked TimeframeF ...
I've got a SqlLayer class I'm trying to Mock that has a GetDataReader method that accepts a string query and an IEnumerable of SqlParameters. I've tri ...
I have a class that implements INotifyPropertyChanged and I need to test if this interface is implemented correctly. I want to do this using a Rhino M ...
I wrote the following test case to illustrate my problem using Rhino Mocks: The test case will fail on the AssertWasCalled() line, no matter if I c ...
I would like to test a task that is supposed to run continuously until killed. Suppose the following method is being tested: public class Worker { ...
I have the following code: and want to test that foo.bar.action doesn't change when foo.bar == null. I have mocked an IFoo object, but I'm not s ...
currently I am changing some implementation of Rhino Mock to NSubstitute. Now I have some difficulty here. could someone help me ? So the logik is: ...
I'm writing unit tests using NUnit and Rhino Mocks to generate a stub. I'd like to use the .WhenCalled method to control the return value of a stubbed ...
Say I want to use Rhino Mocks to generate a stub of the following interface: I stub the method Foo in the one-time setup method for my suite of uni ...
I have a code which looks like example below: Using RhinoMock and/or nunit, I want to unit-test that once 'Stop' is called, IDependency.Foo is no l ...
I am writing a unit test for a flow which is event based. Let me tell you the complete flow with code. I have a application App1 which send some comma ...
Edit: Solved The code is actually fine. Actually the method being evaluated actually is called more than once. But then Rhino Mocks Repeat.Once() don ...
I'm writing a Unit Test case for a c# method with the help of Rhinomocks framework. Inside my actual method I access the Scheme property from the Uri ...
I had a working Rhino Mock test for this constructor Here's the test Then I modified the constructor to this Now I get the following error ...