I\'m trying to setup an expected call to a protected method. The methods signature looks like this: protected SqlDataReader MethodName(string Name, List<SqlParameter> paramList, SqlConnection c
Has anyone tried this? I like moq and i like what pex is doing, but haven\'t tried them together. 开发者_StackOverflowI\'d prefer to use moq over moles in most cases I think but am curious to see if
How can i write test case for action filters? I am using forms authentication. I have base controller decorated with RequiresAuthentication action filter. When i execute the controller\'s test case, i
I am following the Scott hanselman\'s blog but here i am getting httpcontext.current 开发者_如何学JAVAas null. Sometime back i do remember that i wrote some code to fake Httpcontext.current. but unfo
Assume I have some interface with a generic method and no parameters: public interface Interface { void Method<T>();
I am finding difficult to test EntityFramework 4 .I am using it using the database first approach,too late now to move to poco.Needed to deliver pretty quickly,no time to learn properly as usual.
my application has the following code: public interface IConfigurationManager { CustomSection Settings { get; }
Is it possible using Mock Framework to create and return object based on XML data fil开发者_Go百科e
I\'m using ASP.NET MVC 2, NUnit, Moq and MVC Contrib.I have written my first unit test ever, and I have a couple of questions regarding this test.My scenario is that I have an Index view.On this view
I\'ve got a class A that calls a method on interface B, passing to it one of its own methods as sort of a continuation that B is supposed to call when it has a result. T开发者_运维问答he code seems to