Adding unit testing to an existing project

  • Thread starter Thread starter Jo
  • Start date Start date
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
 
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
 
Back
Top