Hi I\'m trying to unit test my logout action on my controller but I have hard times to test or stub my Session in the HttpContext. I\'m using MVC Contrib TestHelper to make it easier but now I need a
I have this interface that returns void in some functions that I would like to mock and wonder what is the correct way of doing so. As of now I have the following:
I\'ve wri开发者_StackOverflowtten some Unit Tests using Rhino Mocks and I\'m happy with the results except for the fact that I have had to expose the underlying web service as public virtual (isUserIn
I would like to know of any prominent projects in Codeplex, GitHub etc whic开发者_如何学Pythonh are C# with ASP.NET or even just C# APIs with both functioning tests (NUnit) and mocks (RhinoMocks, NMoc
I\'m trying to retroactively fit some legacy code with unit tests. Not being terribly experienced with unit tests, this is not making me happy :)
What\'s the best way in Rhino Mocks to test that a particular parameter is passed on the FINAL call to a method? Eg mockview.SetSomething(myObj) might be called any number of times by mockview.Init, b
It\'s kind of hard to explain what I\'m searching for but my example should clarify it. I have next code:
I need to develop a fairly simple algorithm, but am kindof confused as how to best write a test for it.
I have been stuck on this for a day or two, I have recently started using RhinoMocks (v3.5)and I have setup a test. A stub web service that returns a List collection and a class that calls it, and a m
So, using NUnit and RhinoMocks: //Defines basic behavior of all persistable domain objects public interface IDomainObject {...}