I have a Visual Studio solution named – UnitTestProject, unit test with xunit framework.
Under this solution, a project named – MainProject and MainProject_Test,
The MainProject is the “Real” Source for implementation, the MainProject_Test for unittest, which contain the xunit attribute,Assert etc..
My question is, everytime i make change on MainProject, i have to copy&paste to MainProject_Test, it is not efficient way.
So how did the people reflect the code but retain the attribute or Assertion ?
Another question is, is it any name convention of UnitTest project? MainProject_Test / MainProject.Test or MainProjectTest?
MainProject_Test should reference MainProject. It shouldn’t have a copy of all its code.
A common naming convention is MainProject and MainProject.Tests, but there are a number of such conventions.