nunit
Testing method that uses dependency injection (structuremap)
I have got a factory method that create new instances of a certain interface. I am using StructureMap to create 开发者_高级运维new instances of the interface.[详细]
2023-04-10 17:46 分类:问答NUnit & testing log4net dynamic log file location
I\'m writing an application where the user can change (at runtime) the directory where the log4net log is stored. The directory string is stored in the app.config.[详细]
2023-04-10 06:41 分类:问答System.InvalidOperationException: The type Database cannot be constructed
I have been looking into refactoring some old code into a new WCF service, based on net 4.0 and have into a little difficulty with what should be a simple exercise![详细]
2023-04-10 01:09 分类:问答NUnit vs Manual Unit Testing
Background I have recently tried to develop a suite of tests for regression testing of a particular application. I have been using NUnit and have had no problems.[详细]
2023-04-09 17:00 分类:问答NUnit and NMock- ExpectAndReturn - How to tell NMock to expect CreateObjectSet<T>
I have the following var objSet = new DynamicMock(typeof(IObjectSet<Nationality>)); objSet.ExpectAndReturn(\"GetAll\", new List<Nationality>[详细]
2023-04-09 16:07 分类:问答nUnit Exception on a 64 bit Machine
I have an MVC 3.0 app.My testing framework is nUnit 2.4.8.0.I started this code on a 32 bit machine, and recently started using a 64 bit machine.I just as recently upgraded the project to .NET 4.0.[详细]
2023-04-09 15:20 分类:问答NUnit Tests in generic abstract base class are ignored
I have create a generic abstract base class to do some common tests. The test are showing up, but they are ignored. Why?[详细]
2023-04-09 11:36 分类:问答How to mock DbContext [duplicate]
This question already has an answer here: Unit Testing and Mocking using RhinoMocks (1 answer) Closed 8 years ago.[详细]
2023-04-09 07:09 分类:问答Using maxcpucount to parallelise unit testing in msbuild?
In a particular SOA-styled application I\'m working on we have a large number of unit tests in each service. The tests for each service run serially, and I want to test running the tests for each serv[详细]
2023-04-09 04:06 分类:问答assert property of mocked object has been assigned correctly using Rhino.Mocks
In a (web) application I\'ve implemented the MVP pattern for seperation of core concerns. My presenters directly query the database using LINQ-to-NHibernate, or sometimes they use query objects when t[详细]
2023-04-09 02:47 分类:问答