rhino-mocks
MvcMailer unit test with Rhino Mock, how to?
In a new project we use MvcMailer, it\'s great and I would like to know how I can test it using Rhino and NUnit? There\'s an other post on SO and a good Wiki page but it\'s not what I\'m looking for.[详细]
2023-02-24 00:33 分类:问答Ordering method return values with Rhino-Mock stubs
I\'ve started experimenting with Rhino-Mocks (3.6) while reading Roy Osherove\'s The Art of Unit Testing.He has an example that demonstrates that a mocked method can be scripted to return different re[详细]
2023-02-23 02:00 分类:问答DynamicMock and Expected #1, Actual #0
I think I don\'t understand something in Mock, if I use a DynamicMock, it should only verify the call that I expect right? Why do I get an exception in my test below? I don\'t want to verify that the[详细]
2023-02-21 03:00 分类:问答Mocking HttpSessionState in ASP.net for nunit testing
I\'开发者_如何学Pythonve see n a lot of discussions surrounding HttpSessionState and asp.net MVC.[详细]
2023-02-20 02:28 分类:问答Can I have real Mock using Rhino Mocks 3.6 without defining fake values?
I am using Rhino Mocks 3.6. I have seen many types of coding. Sometimes using static GenerateMock method, sometimes using new MockRepository(). I don\'t understand pretty well what is happening or wha[详细]
2023-02-19 21:35 分类:问答How to use Rhino.Mocks to evaluate class Properties (getters and setters)
I\'m studying how Rhino.Mocks works and trying to understand how can I set manually a value in a class Property.[详细]
2023-02-19 20:28 分类:问答How do you raise an event from a Strict Mock in Rhino Mocks?
I want to test that the following code sets the Raised property when the MyEvent event is raised: public interface IEventRaiser[详细]
2023-02-19 11:49 分类:问答RhinoMocks expecting complex object as a parameter
I use RhinoMocks without problems for checking using AssertWasCalled if my method was called with simple parameters such as Arg.Is.Equal(1) etc.[详细]
2023-02-18 02:13 分类:问答Rhino Mocks: AAA Synax: Assert property was set with a given type
I am trying to assert that a property in a mock object was set with a given type. The property has an abstract type and is set with one of a number of concrete types.[详细]
2023-02-18 01:46 分类:问答Rhino Mock Entity Framework using UnitofWork Pattern not working
This is my first attempt at something like this, so hopefully this is simple. I have created a WCF service which uses Entity Framework to access the database. I have implemented a UnitOfWork interfac[详细]
2023-02-17 21:10 分类:问答