In thread WatiN in Visual Studio 2008 - second test method fails there is a good solution with IEStaticInstanceHelper (original answer Reusing an IE instance in VS test, sources), but when ClassCleanup fires it fails on AttachToIE. As result IEXPLORAR remain running.
What is the problem?
Of course it is possible to just kill the process like this:
// Id of IEXPLORAR
_ie.ProcessID
Process.GetProcessById(_processId).Kill();
this._ie = null;
But I don't really like this way...
Any ideas?