Re: (no subject)
"Vasudevan, Nivithadevi IN BLR SISL" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <2671BA11C726674C82107DFF092A37DA01EB5653@inblrk999msx.in002.siemens.net> |
Hi Charlie,
Thanks for the reply.
I checked if am running from obj directory, am not doing that.
I placed the third party dll into the directory which has the
test
Assembly but even after that I get the same error.
I tried using NUnitForms; I am new to this I don't know how to
run
test cases using this.
I have downloaded TestDriven .NET, with the help of TestDriven
.NET I
tried to run test cases written using NUnitForms, this time I
did not get the error.
Regards,
Nivitha
Message: 3
Date: Fri, 7 Dec 2007 09:56:00 -0000
From: "Charlie Poole" <[email protected]>
Subject: Re: [Nunit-users] Need some clarification.
To: <[email protected]>
Message-ID: <001801c838b7$60573e00$8464a8c0@FERRARI>
Content-Type: text/plain; charset="us-ascii"
Hi Nivitha,
You should check that the third party dll is in the directory with the
test
assembly and that you are actually
executing in that directory. I particular, make sure you are not
accidentally running from the obj directory.
Charlie
From: [email protected]
[mailto:[email protected]] On Behalf Of
Vasudevan,
Nivithadevi IN BLR SISL
Sent: Tuesday, December 04, 2007 3:56 AM
To: [email protected]
Subject: [Nunit-users] Need some clarification.
Hi,
I am using NUnit-2.4.3-net-2.0.
I have a windows application (abc.exe) which has a reference
to
a third party DLL (xyz.dll).
I wanted write test cases for the windows application.
I started a new project and added reference to the windows
application (abc.exe) and wrote the following sample test case:
[TestFixture]
public class NUnitTest
{
CTI_DataModel ctiDM ;
[SetUp]
public void Start()
{
ctiDM = new CTI_DataModel();
}
[Test]
public void Testfunction()
{
ctiDM.createVCRNode(1);
}
[Test]
public void TestDBUpdate()
{
ctiDM.DB_Update();
}
}
When I run this in NUnit and tried to run the Test Case I got the
following
error:
ClassLibrary1.NUnitTest.TestDBUpdate: System.IO.FileLoadException: Could
not
load file or assembly 'XYZ, Version=1.0.9.0, Culture=neutral,
PublicKeyToken=8be20dacce6bec9b' or one of its dependencies. Modules
which
are not in the manifest were streamed in. (Exception from HRESULT:
0x80131043)
Then I gave reference to xyz.dll in the Test Case project but still I
got
the same error, can you please let me know if my approach is right or
should
I follow any other approach?
Important notice:This e-mail and any attachment thereto contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php