What steps will reproduce the problem?
1. Created a test project with a test class and two test methods using MbUnit
3.1.
2. Executing the tests using gallio.echo.exe produces the correct test results:
Two test methods working correctly; tests succeeded.
3.Executing the tests using Icarus test runner, an exception is thrown.
What is the expected output? What do you see instead?
The two test methods should succeed. No further messages, even less an error
message :->
Both methods _do_ succeed. But additionally we get an exception in the Icarus
test runner:
"Unhandled exception: An exception occurred in an event handler."
Stacktrace in the textbox below:
System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at Aga.Controls.Tree.TreeViewAdv.ReadChilds(TreeNodeAdv parentNode, Boolean performFullUpdate)
at Aga.Controls.Tree.TreeViewAdv._model_StructureChanged(Object sender, TreePathEventArgs e)
at Aga.Controls.Tree.TreeModelBase.OnStructureChanged(TreePathEventArgs args)
at Gallio.Icarus.Models.ProjectTreeModel.<set_TestProject>b__0(Object sender, EventArgs e)
at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke(EventHandler handlerChain, Object sender, EventArgs e) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 43
Reported by:
UnhandledExceptionPolicy
at Gallio.Common.Policies.EventHandlerPolicy.ReportException(Exception ex) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 81
at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke(EventHandler handlerChain, Object sender, EventArgs e) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 47
at Gallio.Icarus.Reports.ReportMonitor.OnReportDirectoryChanged()
at Gallio.Icarus.Reports.ReportMonitor.<SetupDirectoryWatcher>b__7(Object sender, FileSystemEventArgs e)
at System.IO.FileSystemWatcher.OnCreated(FileSystemEventArgs e)
at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32 action, String name)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
What version of the product are you using? On what operating system?
Gallio 3.1.397
MbUnit 3.1.0.0
Windows Vista with SP2
Please provide any additional information below.
This is the class we created:
<Testfixture()> _
Public Class Test
Dim cnn As SqlConnection
Dim cmd As SqlCommand
Dim DS As DataSet
Dim DR As DataRow
Dim RecCount
Dim dt As New DataTable
Public Sub New()
cnn = New SqlConnection
cnn.ConnectionString = "<valid connection string>"
cnn.Open()
cmd = New SqlCommand()
cmd.CommandText = "Exec <valid procedure name> '01.04.2009', '30.04.2010'"
cmd.Connection = cnn
Dim da As New SqlDataAdapter(cmd)
da.SelectCommand = cmd
da.Fill(dt)
RecCount = dt.Rows.Count
DR = dt.Rows(0)
End Sub
<Test()> _
Public Sub CheckTable()
Assert.AreEqual(RecCount, 200)
End Sub
<Test()> _
Public Sub CheckColSumme()
Assert.AreEqual(DR.Item("Summe").ToString, "250000.0000")
End Sub
End Class
Original issue reported on code.google.com by rene.f...@raiffeisen.ch on 30 Jun 2010 at 12:59
Original issue reported on code.google.com by
rene.f...@raiffeisen.ch
on 30 Jun 2010 at 12:59