Trying to figure out how to adequately test my accounts controller.I am having problem testing the successful logon scenario.
How can I test that \"TestProperty\" was set a value when ForgotMyPassword(...) was called? >public interface IUserRepository
a very simple method, but don\'t know what\'s to test! I\'d like to test this method in Business Logic Layer, and the _dataAccess apparently is from data layer.
I\'m trying to write a unit test that will raise an event on a mock object which my test class is bound to.
I am relatively new to using MSpec and as I write more and more tests it becomes obvious to reduce duplication you often have to use a base class for your setup as per Rob Conery\'s article
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one pro开发者_高级运维blem only b
What would a simple unit test l开发者_StackOverflow中文版ook like to confirm that a certain controller exists if I am using Rhino Mocks, NUnit and ASP.NET MVC 2?I\'m trying to wrap my head around the
If I have a Rhino Mock object that has already has a stub call declared on it like this: mockEmploymentService.开发者_C百科Stub(x => x.GetEmployment(999)).Return(employment);
I am mocking a repository that should have 1 entity in it for the test scenario. The repository has to return this entity based on a known id and return nothing when other ids are passed in.
My unit test keeps getting the following error: \"System.InvalidOperationException: The Connection is not open.\"