All, I\'m developing and unit testing an interactive voice application using ASP.NET MVC 3 whose controllers return Views containing VoiceXML.I\'d like to create unit tests that capture the actual Vo
We have a reasonably complicated interface hierarchy and I\'m struggling to get Moq to do what I want it to.
I\'m trying to add Moq to my tests in MSTest to test parts of my code. The code i want to test which is not working is a piece of code that should filter data retreived by a service and pass this thr
Trying to do some controller unit-testing in my ASP.NET MVC 3 web 开发者_如何学编程application.
trying to insp开发者_如何转开发ect and argument and need to retrieve it. what is the equivalent in Moq? or a way to do it in Moq?figured it out, utilizing the callback functionality on the Mock Setup
I have the following method signature: IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback cal开发者_StackOverflow社区lback, object state)
Doesn\'t being required to virtualize all property accessors you want to开发者_如何学C mock kind of defeat the purpose of mocking?
First, let me say I\'ve searched on this topic and did come across a solution here: asp.net mvc: how to mock Url.Content("~")?
Sometimes I want to just verify that a function was called rather than have to test the function was called with specific parameters.
I have been given the task to evaluate codeFirst and possible to use for all our future projects. The evaluation is based on using codeFirst with an existing database.