chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
If you're looking for a quick way to try out TypeMock Isolator or experiment with it a little, I posted a template for a simple console application that will run NUnit with TypeMock enabled against any fixtures in the assembly. It's a single file and works fantastic with Snippet Compiler (but can also be used from Visual Studio).

If you want to mess around with things but don't want to go to the work of creating a test fixture or enabling/disabling Isolator or whatever, this might help you out. You can read more about it and download it for free from my blog.

(TestDriven.NET is also a great way to get things working quickly without having to leave the Visual Studio IDE or run a separate test runner GUI.)
asked by tillig (6.7k points)

2 Answers

0 votes
Cool 8)
Only had to change
public static readonly string NUnitLocation = Path.Combine(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "NUnit"), "bin");

To point to the right place and it run.
This because at my machine the path is:
Program FilesNUnit <NunitVersion>in

Thanks Travis.
answered by ohad (35.4k points)
0 votes
Excellent - glad it worked. I knew the location of NUnit would be different for everyone (different versions = different folder names) so I put the location in a fairly obvious "Configuration" class - so it was easy to see what might need to be changed. Update the template on that one line and you're set!
answered by tillig (6.7k points)
...