I am trying to set up exceptions for a method that is called twice in a row with different parameters. Like this:
I have an interface public interface IDataProvider { T GetDataDocument<T>(Guid document) where T:class, new()
I have a requirement to provide auto-mocking for 30 different types of custom business objects. In order to avoid the cost of writing manual mock-up codes for all public properties in each entity, I a
After some hours creating a vb.net helper class for unit-tests and integrating moq into the project followed by a smashing hit on the \"Run tests\" Key-Command and then a Red Light revealed himself.
I\'m new to Moq and I wonder how I could write the following test if the \"Bounds\" property is not declared virtual.
I need to verify that a method is called, however it receives a parameter object which I can\'t determine at design time. I don\'t care what the parameter is, I just want to verify that the method is
I want to mock (using MOQ) view returned by Findview method as shown below, so that view is not null:
So I\'m overriding OnActionExecuted in my BaseController class to set the CurrentUser property of a BaseViewModel. I\'d like to be able to unit test this, but can\'t figure out how.
I\'ve just finished implementing a basic asp membership into my MVC project and I\'m looking to write some tests. I had some initial problems with mocking the provider but now that is sorted. Obviousl
I\'m using mog for mocking a repository with LINQ to SQL like this: public static IProductsRepository MockProductsRepository(params Product[] prods){