What is the best place for me to put nunit tests for a library that should be used from both ASP.Net and WinForms

I have an infrastructure library that should be used from both WinForms and ASP.Net.

I would like to wrap this in some unit tests.

In which project do I put them?

Am I using a different folder in my library project? Another solution that contains only my infrastructure project and a separate module testing project?

By the way, I will use the ReSharper test runner, if that matters.

In addition, this library is on top of NHibernate, if that matters.

+3
source share
3

, . .

, winform -.

, MVP Injection Dependency, .

+6

, WinForms ASP.NET.

0

I not only create a separate project for my tests, but also separate them into separate projects for unit and integration tests.

Thus, you can configure the continuous integration server only to run unit tests during verification, and then run both sets of tests for nightly assembly.

0
source

Source: https://habr.com/ru/post/1704680/


All Articles