moq
MoQ + SetUp via conventions
Is it possible to setup an mock object\'s expectations via a mode of 开发者_运维问答conventions and example?[详细]
2023-03-18 20:48 分类:问答Why use a Mocking Framework?
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[详细]
2023-03-17 00:40 分类:问答Moq object always returns null - why?
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:[详细]
2023-03-16 21:44 分类:问答How to upload a file to an endpoint from an integration test
When a file is uploaded from the client, it can be found in this.Request.Files, which is of type HttpFileCollectionBase.[详细]
2023-03-16 15:55 分类:问答Better way to unit test events using NUnit and Moq?
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[详细]
2023-03-16 13:46 分类:问答Can I use Moq with MvcContrib.TestHelper?
I\'m working on my first ASP .NET MVC project and prior to this moment I\'ve only used Rhino.Mocks for desktop applications.[详细]
2023-03-16 04:20 分类:问答Unit testing Builder pattern with Moq
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.[详细]
2023-03-15 19:49 分类:问答Dynamically calling Moq Setup() at runtime
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[详细]
2023-03-15 04:48 分类:问答How to stop monodevelop add **-noconfig** compilation option?
I tried to compile this moq example on Mono 2.8.2, targeting .NET 3.5., with MonoDevelop 2.4.1 using System;[详细]
2023-03-15 01:32 分类:问答Is the moq project dead? Is it wise for me to invest in learning it? [closed]
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.[详细]
2023-03-14 18:35 分类:问答