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 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 try to create two mock objects of a class but it creates two mocks with same assembly "FullName". Above assertion is true which I expected false. ...
My class has a method like this: internal virtual Something CreateSomething(){...} It was done this way so that in testing I can stub CreateSomethin ...
I am using Rhino Mocks to test the following method. Have something like this but don't know how to continue: But how can I arrange values in me ...
I am writing test for CheckPassWord() I presume the Expect call is not behaving as expected on my userMangerMock. CheckPassWord() internally calls ...
I've been trying to figure out what is happening with this particular test that I'm writing and now reaching out again to see if someone might know wh ...
I am new to TDD and RhinoMocks. I am trying to test AssertWasCalled but having problems. The constructor to my test is as follows: And my test is ...
I am getting an exception on the Do Method of Rhino Mock. System.InvalidOperationException : The delegate return value should be assignable from M ...
I have a little problem with Rhino Mocks. I have an abstract class with a method that expects an object (in the sample below a string). The method ch ...
I have a class I am unit testing and all I want to do is to verify that the public setter gets called on the property. Any ideas on how to do this? I ...
I currently have a repository that is using Entity Framework for my CRUD operations. This is injected into my service that needs to use this repo. U ...
I have a c# class that uses a Mutex to control access to a global shared resource. The Mutex is not assigned unless the shared resource is created. I' ...
Having gone through the net forums, still unable to rectify this error in my unit testing for the below line. Initially, it worked fine, but the l ...
Given the following snippet from my test: Internally target.SaveItem makes a call like this: provider.SaveItem(new SaveContract(item.Id, user, con ...
How to emulate the following behaviour using RhinoMocks? The tested method invokes ReceivePayment method on an interface. Interface has the CashAc ...
I see in the Rhino source code the following code: But in practice, I can use either | or ||. Similarly, both & and && work the same w ...
How to getting TempData after RedirectToAction in Rhino Mock test? Code Test ...
I have a protected abstract method. Is there anyway I can stub it? Basically the template method calls that abstract method and I need it to stub it. ...
Let's say I have a test using RhinoMock. I'm using the AAA aproach, so it's usually ended with fooMock.AssertWasCalled(x=>x.Foo(bar)) If the asser ...
I have test code similar to this: This code doesn't behave as expected though. The variable result contains Integer.MinValue not 99, as expected. ...