nunit
Where to put Automapper maps in Nunit test assembly
I am using Automapper in my application and I am testing the maps with fake objects, so I have slightly different maps in my tests than in my production code, what is the best way to c开发者_Go百科rea[详细]
2023-04-02 02:44 分类:问答Different return values the first and second time with Moq
I have a test like this: [TestCase("~/page/myaction")] public void Page_With_Custom_Action(string path) {[详细]
2023-04-01 21:32 分类:问答Nunit Shadow Copy Cache Directory is Huge
I\'ve noticed a huge amount of disk space b开发者_如何转开发eing used recently and finally did some investigating.I found out that I have over 200 GB in the following directory:[详细]
2023-04-01 08:31 分类:问答NUnit crashing with NHibernate
I\'m running some NHibernate tests with NUnit and the NUnit test agent is crashing. I know there\'s not much to go on but obviously NUnit itself should not crash.[详细]
2023-04-01 02:33 分类:问答NUnit & Exceptions
Is there anyway one can output to the console 开发者_开发问答the message of an exception that may be throw during an NUnit test? Currently I use the ExpectedExceptionAttribute but that doesn\'t output[详细]
2023-03-31 20:08 分类:问答Show only specific Tests or TestFixtures in NUNIT via a configuration file or another way
I have a bunch of NUNIT tests in several TestFixtures.Currently, I just display all the tests for everyone.Is there a way to hide some tests and/or test fixtures.I have various \"customers\" and they[详细]
2023-03-31 19:21 分类:问答Mocking an ITable using RhinoMocks for nunit testing
I have an interface against which I run a linq to sql query: public interface IMyDataContext : IDisposable[详细]
2023-03-31 14:38 分类:问答Mock presence of Authorize attribute
I was wondering how you could mock that a controller is decorated with the [Authorize] attribute in MVC3? I am using a custom membership provider. I would like to test that a controller been decorated[详细]
2023-03-30 19:21 分类:问答Running nunit gui from asp.net mvc web page
I am trying to launc开发者_C百科h the nunit gui app from an asp.net mvc web page (don\'t judge!) Here is the controller code:[详细]
2023-03-30 09:42 分类:问答"Inverted" Timeout functionality in NUnit tests
I\'m looking for a way to write a unit test using NUnit so that if current test takes more than X miliseconds to complete it should terminate and report it as skipped / success, but not failed. This w[详细]
2023-03-30 03:43 分类:问答