user2132190
user2132190

Reputation: 465

C# .NET Framework Library -- where to put unit tests?

Getting set up for TDD with C# .NET Framework.

I have added a library project to my VS solution and want to add unit tests. I see that I can add a MSTest project to the solution.

Does this mean that it's better to keep the library in its own solution, rather than having a couple of library projects, and a couple of test projects, plus the main application all in one solution?

In other words, when developing a library, is it best to have one solution for the library and its unit tests, and then another solution for the application that uses the library?

Thanks

Upvotes: 0

Views: 73

Answers (1)

trauni
trauni

Reputation: 154

No, you can keep the project for testing in the same solution.

Upvotes: 1

Related Questions