Maybe the 1st post of a long series dedicated to the .Net Universe.
Visual Studio (VS) is well known to come with plenty of plugins or project template to create unit-test project.
But sometimes you would change the unit test framework a project used to.
Indeed it's not so easy but please found below several useful tips&tricks to move a MSTest project and code to a NUnit project.
1) Remove the MSTest Framework reference
2) Add nunit.framework instead.
3) Use the following side by side attribute dictionary to replace all MSTest attribute by their equivalent in the NUnit framework.
4) build & load your assembly with nunit... Every should work! IBut...
5) try to start nunit from your VS and now VS claims that there is no test inside!
6) So edit your vcproj file and search for the <ProjectTypeGUID>. If you found 2 GUID inside, goto to this page to lean more about the existing project type and their GUID. Remove the test GUID
{3AC096D0-A1C2-E12C-1390-A8335801FDAB}, save, and reload the project.
And... THE END !
Aucun commentaire :
Enregistrer un commentaire