How to do unit testing of assemblies using nunit

We have a project that all assemblies are delayed. Development machines are configured to skip the scan using the sn.exe tool:

 sn.exe -Vr *,PUBLIC_KEY_TOKEN_HERE 

If we test these assemblies using nunit (GUI version), the test will not work (all tests failed) due to a delay. But if these assemblies are re-signed, the test will work. We all know that to re-sign the assembly, we need a public key file (for example, mycompany.snk). We do not believe that good practice gives the mycompany.snk file to all developers.

Is there any solution so that every developer can test their builds without canceling again or without mycompany.snk file?

+8
nunit
source share
1 answer

Have you accidentally developed on a 64-bit version of Windows? Some time ago, we had a similar problem when we were going to be late, but they did not load correctly during unit testing. The problem turned out to be that we were developing 64-bit windows. It turns out there are two sn.exe programs, one for 32 bits and one for 64 bits. (The 64-bit version is located in the "x64" directory below the bin directory for the 32-bit executable in the Windows SDK. I'm not on the development machine at the moment, sorry, so I can not give you the exact path from the memory). We use the "sn -Vr" command using the 32-bit version, and then run the same command using the 64-bit version, and everything works.

+3
source share

All Articles