I love LINQPad and use it daily. I tried to find a way to create and run ad-hoc tests with nunit and TypeMock in LINQPad for a while.
So, I came across and got some results, but some links are still missing.
Here is what I did:
At this point, I can get Nunit and Typemock to work with some manual step (you need to copy the dll nunit and typemock files to the executable directory, for example, \ AppData \ Local \ Temp \ 1 \ LINQPad \ skbidgcw).
But if I add my assemblies (which I want to test) in the LINQPad script, the test will fail because NUnit cannot find the assemblies in the executable directory. I even tried copying all the DLLs to this, but this will also fail due to:
System.IO.FileNotFoundException : Could not load file or assembly 'LINQPad, Version=1.0.0.0, Culture=neutral, PublicKeyToken=21353812cd2a2db5' or one of its dependencies. The system cannot find the file specified.
My linqpad request is here: http://pastebin.com/QtPNCv25
Any help would really be appreciated!
As a side note, I also tried using NUnitLite , while it performs Nunit tests perfectly, I can’t find a way to get it to work with Typemock, it gives the error message “Typemock Isolator is required to communicate with the Coverage Tool to run”.
source share