[Mono-devel-list] NUnit2 conversion of tests in System.Data assembly

ville vi64pa at kolumbus.fi
Wed Mar 19 12:05:02 EST 2003


Hi!

I just cant figure out what should I do to run these System.Data tests with 
NUnit2. Can you help me, please!

In the old days (before nunit2) I just typed make -f makefile.gnu test, but 
now when I type make -f makefile test it just compiles tests but not run the 
tests.

and even if i try to type: mono ../../../nunit20/nunit-console.exe 
data_linux_args.dll it give me lots of errors:

---> System.Runtime.Serialization.SerializationException: No element named 
ClassName could be found.
in <0x000ad> 00 System.Runtime.Serialization.SerializationInfo:GetValue 
(string,System.Type)
in <0x00022> 00 System.Runtime.Serialization.SerializationInfo:GetString 
(string)
in <0x00088> 00 System.Exception:.ctor 
(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
in <0x0002e> 00 System.IO.FileNotFoundException:.ctor 
(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
in (unmanaged) mono [0x80a0962]
in (unmanaged) mono(mono_runtime_invoke+0x27) [0x80bf7b5]
in (unmanaged) mono(mono_runtime_invoke_array+0x198) [0x80c0386]
in (unmanaged) mono [0x80c56be]
in <0x000a3> 00 System.Reflection.MonoCMethod:Invoke 
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
--- End of inner exception stack trace ---

in <0x000bc> 00 System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke 
(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)
in (unmanaged) 07 System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
in <0x00004> 07 System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
in <0x0012e> 00 NUnit.Framework.TestDomain:MakeRemoteTestRunner 
(System.IO.FileInfo,System.AppDomain)
in <0x000a9> 00 NUnit.Framework.TestDomain:Load (string)
in <0x000f9> 00 NUnit.Framework.TestDomain:Load (string)
in <0x000dc> 00 NUnit.Console.ConsoleUi:MakeTestFromCommandLine 
(NUnit.Framework.TestDomain,NUnit.Util.ConsoleOptions)
in <0x00201> 00 NUnit.Console.ConsoleUi:Main (string[])

On Monday 17 March 2003 01:44, Martin Willemoes Hansen wrote:
> Hi!
>
> I Converted the Tests in the System.Data assembly to NUnit2.
>
> System.Data.SqlTypes/SqlInt16Test.cs
> System.Data.SqlTypes/SqlInt64Test.cs
> System.Data/DataTableTest.cs
> Did not work for me though :(
>
> Results of the rest of the tests:
>         Tests run: 403, Failures: 94, Not run: 0, Time: 7.10179 seconds
>
> Is TheTests.cs used for anything? Seems old to me.
>
> Ill commit tomorrow sometime if nobody objects.




More information about the Mono-devel-list mailing list