Problems!! Unit testing with Visual Studio 2008

#1
with this hack i solved some problems
[ClassInitialize] public static void ClassInitialize(TestContext testContext) { AppDomain.CurrentDomain.SetData("APPBASE", Environment.CurrentDirectory); Console.WriteLine("DEBUG: " + AppDomain.CurrentDomain.BaseDirectory); }
BUT with our Base.dll i got an Exception dll not found!

SOLUTION
I must copy our Base.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

then it works!
not NICE

#2
to find all configured sections, usersettings, agents-dlls i need my app.config resp. my web.config but
the App.config works with VS2008 with VS2005 not.
SOLUTION
in VS2005 i must add the VSTestHost.exe.config then it works.

or maybe it works even with App.config

TO TEST!


#3
at last i get my solution always checked out when i run my unit test.
the vs2008 does add the vsmdi file as Solution Item.

how can i disable this?

A post that helped at first time.
But Next time it gets checked out.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=499083&SiteID=1

Latest Posts

Popular Posts