Hi!
I have been trying the last couple of days to get some testcases i have
written to work on linux/mono. They work with nunit in windows with .NET sdk
but not in linux/mono. I really need to get the testcases running since that
will help me alot with making the mail API's work the same on mono and .NET
sdk.
Here is the source code that doesnt work with nunit for me:
http://hus11.rsn.bth.se/~pure/smtpunit.tar.gz
-THE ERROR OUTPUT IS ATTACHED IN THE TEXT FILE-
Best regards
Per Arneng
NUnit version 2.0.9
Copyright (C) 2002 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Exception in base domain
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been
thrown by the target of an invocation.
Server stack trace:
in <0x00107> 00 System.Reflection.MonoCMethod:Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x00247> 00 System.Runtime.Serialization.ObjectRecord:LoadData
(System.Runtime.Serialization.ObjectManager,System.Runtime.Serialization.ISurrogateSelector,System.Runtime.Serialization.StreamingContext)
in <0x00143> 00 System.Runtime.Serialization.ObjectManager:DoFixups ()
in <0x0004e> 00
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader)
in <0x000d5> 00
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader,bool,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x00243> 00
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
in <0x0001d> 00
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream)
in <0x00074> 00 System.Runtime.Remoting.Channels.CADSerializer:DeserializeObject
(System.IO.MemoryStream)
in <0x00069> 00 System.Runtime.Remoting.Messaging.CADMethodReturnMessage:GetArguments
()
in <0x000ab> 00 System.Runtime.Remoting.Messaging.MethodResponse:.ctor
(System.Runtime.Remoting.Messaging.IMethodCallMessage,System.Runtime.Remoting.Messaging.CADMethodReturnMessage)
in <0x00284> 00 System.Runtime.Remoting.Channels.CrossAppDomainSink:SyncProcessMessage
(System.Runtime.Remoting.Messaging.IMessage)
Exception rethrown at [0]:
---> 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) /usr/bin/mono [0x80a2c6e]
in (unmanaged) /usr/bin/mono(mono_runtime_invoke+0x27) [0x80c2051]
in (unmanaged) /usr/bin/mono(mono_runtime_invoke_array+0x1a0) [0x80c2c34]
in (unmanaged) /usr/bin/mono [0x80c80ed]
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[])