Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Unit tests failed after import vs2005 solution to vs2008.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xiehuanxie  
View profile  
 More options Jun 18, 1:03 am
From: xiehuanxie <xhu...@yahoo.com.cn>
Date: Wed, 17 Jun 2009 22:03:35 -0700 (PDT)
Local: Thurs, Jun 18 2009 1:03 am
Subject: Unit tests failed after import vs2005 solution to vs2008.
Hi all,

I am trying to port solution from vs2005 to vs2008, every thing works
well except the unit test.

My solution containes C#, C++/clr (C++/CLI), and C++ native. I would
like to test a C# project which has C++/clr dependency. My assembly is
build from

severals netmodule, some writtens in C#, some in C++/CLI.

When I launch the test from Visual. I got an exception (see exception
stack below).
Actually, if I use mstest and /noisolation, IT WORKS!

I am not sure of understanding this magical argument. MSDN say : "Run
tests within the MSTest.exe process. This choice improves test run
speed but increases

risk to the MSTest.exe process".(http://msdn.microsoft.com/en-us/
library/ms182489.aspx)

But in my case, there is not just a matter of speed! It affects the
test process.

So my question is:

How can I avoid the noisolation argument and sucessfully pass my
tests?

Thanks for your replies!

Error message:
Test method
InScan.Infrastructure.Test.SSDPcbElementAlignerTest.AlignOutOfBoundsTest
threw exception:  System.TypeInitializationException: The type

initializer for '<Module>' threw an exception. --->
<CrtImplementationDetails>.ModuleLoadException: The C++ module failed
to load while attempting to

initialize the default appdomain.
 --->  System.IO.FileNotFoundException: The system cannot find the
file specified. (Exception from HRESULT: 0x80070002).

stack trace:
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal
(Int32
errorCode, IntPtr errorInfo)
DoCallBackInDefaultDomain(IntPtr function, Void* cookie) in
f:\dd\vctools\crt_bld\self_x86\crt\src\minternal.h: line 447
DoCallBackInDefaultDomain(IntPtr , Void* )
DefaultDomain.Initialize()
LanguageSupport.InitializeDefaultAppDomain(LanguageSupport* )
LanguageSupport._Initialize(LanguageSupport* )
LanguageSupport.Initialize(LanguageSupport* )


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google