[Mono-devel-list] NUnit && AssertEquals

Philip Tricca phil at noggle.biz
Sat Feb 7 18:43:28 EST 2004


I'm currently playing around with the NUnit system testing some code
with AssertEquals as was recommended on go-mono. NUnit is working great
and AssertEquals catches my test cases when they are not as expected ie.

(I'm generating SQL)
AssertEquals("DeletePk", sql, "DELETE FROM member WHERE id = 0101010");

When the generated string (sql) matches everything works fine. When the
assert fails, I get the expected Failures message but also some debug
stuff (see bottom). Should this be expected? I just upgraded all my
mcs/mono/gtk# to the latest versions. Any one who could shed some light
on this, I'd really appreciate it.

Thanks
 - flip

output:
============================
in [0x00042] (at
/home/flip/ccw-dotnet/Umbrella/class/Umbrella.PMS/Test/Umbrella.PMS.Query.Sql/SqlGeneratorTest.cs:64) Umbrella.Test.SqlGeneratorTest:DeletePk ()
in (unmanaged) /usr/local//lib/libmono.so.0 [0x76db4b]
in (unmanaged) /usr/local//lib/libmono.so.0(mono_runtime_invoke+0x23)
[0x7a87cb]in (unmanaged)
/usr/local//lib/libmono.so.0(mono_runtime_invoke_array+0x115) [0x7a94e1]
in (unmanaged) /usr/local//lib/libmono.so.0 [0x7aeca4]
in [0x00033] (at
/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:98)
System.Reflection.MonoMethod:Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)




More information about the Mono-devel-list mailing list