<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Unit Test throws exception</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Unit Test throws exception</description>
  <pubDate>Thu, 11 Jun 2026 10:49:17 -700</pubDate>
  <lastBuildDate>Thu, 03 Jan 2008 10:07:17 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=644</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Unit Test throws exception : We ran into the very same issue...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=644&amp;PID=2342#2342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 644<br /><strong>Posted:</strong> 03-Jan-2008 at 10:07am<br /><br /><FONT size=2><FONT color=#000080><FONT face=Arial>We ran into the very same issue when we started running our own Unit Tests on our V4 product (which runs only under VS2008).<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></FONT><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Here’s the code we’re using – you’ll find an Initialize() method in all our V4 Unit Tests.<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; &#091;TestInitialize&#093;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; public void Initialize() {<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // With the VS2008 Test framework the AppDomain and base directory will be pointing<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // to the common/ide directory and config file probing will fail if you're using the AppHelper.&nbsp; <o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Here’s a workaround:<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IdeaBladeConfig.ConfigFileAssembly = System.Reflection.Assembly.Load("AppHelper");<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Note that the initialization isn’t strictly required in &#091;TestInitialize&#093;, that’s just what we use.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face="Times New Roman" size=3>&nbsp;</FONT></P>]]>
   </description>
   <pubDate>Thu, 03 Jan 2008 10:07:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=644&amp;PID=2342#2342</guid>
  </item> 
  <item>
   <title>Unit Test throws exception :  While using Visual Studio 2008...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=644&amp;PID=2341#2341</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 644<br /><strong>Posted:</strong> 03-Jan-2008 at 10:04am<br /><br /><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'"><DIV>While using Visual Studio 2008 and DevForce <SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'">3.5.5.1 Beta, </SPAN>I ran</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'">&nbsp;into an issue with ‘PersistenceManager.DefaultManager’ when I tried to run unit tests. If I run the application I get the correct value in the text box. &nbsp;If I try to run the Unit Test “PersistanceManagerInUnitTests /DD.Tests.cs”, I get the following exception:&nbsp; 'PersistenceManager.DefaultManager' threw an exception of type 'IdeaBlade.Util.IdeaBladeException'.<?:NAMESPACE PREFIX = O /><O:P></O:P></SPAN></DIV><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'"><O:P></O:P></SPAN></P><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'">base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {"Unable to obtain a valid configuration file on &lt;ComputeName&gt;\n\nProbing path: \n1) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\CQConverter.exe.config - not found\n2) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe.config - not found\n3) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\diffmerge.exe.config - not found\n4) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\MSTest.exe.config - not found\n5) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\TF.exe.config - not found\n6) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\TfsBuild.exe.config - not found\n7) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\TFSFieldMapping.exe.config - not found\n8) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\vsdiag_regwcf.exe.config - not found\n9) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\VSSConverter.exe.config - not found\n10) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\VSTestHost.exe.config - not found\n11) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\VSTST-FileConverter.exe.config - not found\n12) File: C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\IdeaBlade.ibconfig - not found\n13) Design-time execution detected - Will not probe for app.config or IdeaBlade.ibconfig in AppHelper\n14) IdeaBlade.ibconfig fallthru - Default IdeaBlade.ibconfig used\n15) Logging file: \n"}System.Exception {IdeaBlade.Util.IdeaBladeException}<O:P></O:P></SPAN></P>]]>
   </description>
   <pubDate>Thu, 03 Jan 2008 10:04:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=644&amp;PID=2341#2341</guid>
  </item> 
 </channel>
</rss>