I have 3 C# projects X, Y and Z. I have 2 unit test projects Xt that tests code in project X, and Yt that tests code in project Y. Project Z is a library project and is referenced by projects X and Y.
In both unit tests project I have generated a Fakes assembly for Z, meaning they both have their own version of Z.Fakes.dll. All DLLs are outputted into the same directory. Because they both create a Z.Fakes.dll, one overwrites the other in the output directory, depending on the build order, meaning one set of unit tests fails because the Shims & Stubs do no exist in the fakes assembly.
Assuming that I can't set different output directories for each unit test project, and cannot merge the unit tests into a single unit test project, how can I avoid this Fakes assembly name conflict? Is there any way to generate a Fakes Assembly and give it an alias e.g. Zx.Fakes.dll and Zy.Fakes.dll?
Aucun commentaire:
Enregistrer un commentaire