Re: Need some clarification.
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <001801c838b7$60573e00$8464a8c0@FERRARI> |
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? Regards, Nivitha 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 _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users