I have installed VS2010 Express and C# Express Edition and MoQ. I would like to know how can I execute the MoQ tests in class library without using the paid for version of VS2010?
How would you un开发者_C百科it test FTPWebRequest and FTPWebResponse through MOQ.You can\'t mock FTPWebRequest or FTPWebResponse with Moq, because it only allows you to mock interfaces or abstract cla
I\'m trying to do the f开发者_StackOverflowollowing: mockObject.Setup( a => a.MyObject.MyMethod( It.IsAny<string>() ).MyProperty ).Returns( ?? );
There is bound to be something obvious I\'m overlooking - there usually is when I have problems like this.
I\'m using Moq to write the unit tests for a project, and one of the tests is failing when I try to verify that a DateTime property is assigned a value. Here\'s my Verify (which fails):
I am trying to write a unit test for an Action who\'s model uses Data Annotations to validate the members.I am using Moq as my mocking framework.
I\'m writing unit tests (using NUnit & Moq) for my MVC 2 controllers, and am following examples in the 开发者_StackOverflow社区Pro ASP.net MVC 2 Framework book by Steven Sanderson (great book, btw
im unit testing my home controller. This test worked fine until I added a new feature which saves images.
I need help with my Moq tests. I have one big project, and when we started to create tests using XML configuration it all went good. Now that was changed and all configuration is in a DB.
Here is my IProductRepository: public interface IProductsRepository { IQueryable<Product> Products { get; }