Need some clarification.

"Vasudevan, Nivithadevi IN BLR SISL" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <2671BA11C726674C82107DFF092A37DA01DA0324@inblrk999msx.in002.siemens.net>
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: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.