I am trying the following, but I am getting : Object reference not set to an instance of an object. HttpContextBase mockContext = MockRepository.GenerateMock<HttpContextBase>();
Using RhinoMocks - how can I say \"whenever some function is called from now on - it should return some value\".
I have a method that I want to test which hits the database.From what I have read this is a perfect oppurtunity to use a mock.However the problem that I am facing is that I pass the object a string an
Using RhinoMocks - can I fetch the parameters of a called function? I mean; can I get some of the unknown parameters from the function call out?
I have a class like so: public abstract class ClassA<T> { protected ClassA(IInterface interface) { if (interface== null)
I have a class with a private set property that I want to stub out with rhino mocks.When I try to do this, though, it gives me a compile time error saying I can\'t set a read only property.I\'m new to
I have number of classes I\'ve been asked to add some unit tests to with Rhino Mocks and having some issues.
I am planning to rewrite a current system that I previously worked on a portion of. I am doing this as a learning exercise. Below is a description of the old system, basic architecture of the new syst
Forgive me for my ignorance.I\'m trying to learn Rhino. public Foo(Stream stream) { if (stream == null) throw new ArgumentNullException(\"woot\");
I would like to be able to mock the ClientScriptManager class on a webforms Page object, however it seems like I can\'t, I get the error that I can\'t mock a sealed class.