Adding unit testing to an existing project

J

Jo

HI there:

I m trying to add unit testing to an existing project, the problem is
the namespaces,
in the projet there were no namespaces, when I add the namespace into
the form I want to test and to the unittesting code, i get loads of
errors, if i remove that and use no namespaces i have problems with
libraries

myproject.uTest.myFirstTest : System.IO.FileLoadException : Could not
load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
----> System.IO.FileLoadException : Could not load file or assembly
'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral,
PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)

Thanks in advance for your help

jo
 
J

Jo

HI there:

I m trying to add unit testing to an existing project, the problem is
the namespaces,
in the projet there were no namespaces, when I add the namespace into
the form I want to test and to the unittesting code, i get loads of
errors, if i remove that and use no namespaces i have problems with
libraries

myproject.uTest.myFirstTest : System.IO.FileLoadException : Could not
load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
----> System.IO.FileLoadException : Could not load file or assembly
'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral,
PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)

Thanks in advance for your help

jo

Actually i got it work if the class i m testing doenst use any sql
but that means i can only test very trivial stuff, any guidelines?
Cheers
jo
 
J

Jo

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top