Is it possible to setup an mock object\'s expectations via a mode of 开发者_运维问答conventions and example?
We\'re currently following the DI model usin开发者_开发知识库g Autofac as an IoC container. We\'ve recently started looking into mocking frameworks like MOQ and Rhino Mocks. However, we can\'t seem t
I am trying to get to grips with Moq and using a simple example to figure it out.I am using Google to geocode an address. I have wrapped WebClient so it can be mocked. Here is the code:
When a file is uploaded from the client, it can be found in this.Request.Files, which is of type HttpFileCollectionBase.
I am using NUnit and Moq to test开发者_如何学C a class that has some events and I am trying to find the best way to test whether or not an event was fired.I came up with this solution but it feels kin
I\'m working on my first ASP .NET MVC project and prior to this moment I\'ve only used Rhino.Mocks for desktop applications.
I\'m using the builder pattern to generate viewmodels for the controller and when I was trying to unit test my controller I found myself unable to do so. Moq complains.
I want to create a factory that will create commonly mocked objects for my unit tests.I\'ve already managed to set up my tests so I can mock up a Linq2Sql DataContext and return an in memory table ins
I tried to compile this moq example on Mono 2.8.2, targeting .NET 3.5., with MonoDevelop 2.4.1 using System;
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.