NUnit 2.6.0.12035 (RC) - Exception raised when add/remove a category in GUI

26 views
Skip to first unread message

tph

unread,
Feb 6, 2012, 5:58:47 PM2/6/12
to NUnit-Discuss
Hi, I'm new here. I tried adding CategoryAttribute to my test cases
and when I add or remove the category in the GUI, an
InvalidOperationException was thrown. Is it a bug? Or did I do it
wrong? Thanks in advance.

Here's the detail:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: List that this enumerator is bound
to has been modified. An enumerator can only be used if the list does
not change.
at
System.Windows.Forms.ListBox.ItemArray.EntryEnumerator.System.Collections.IEnumerator.MoveNext()
at NUnit.UiKit.TestTree.removeCategory_Click(Object sender,
EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nunit
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/nunit.exe
----------------------------------------
nunit-gui-runner
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit-gui-runner.DLL
----------------------------------------
nunit.core
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit.core.DLL
----------------------------------------
nunit.util
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit.util.DLL
----------------------------------------
nunit.uikit
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit.uikit.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
nunit.core.interfaces
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit.core.interfaces.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
nunit.uiexception
Assembly Version: 2.6.0.12035
Win32 Version: 2.6.0.12035
CodeBase: file:///C:/Program%20Files/NUnit%202.6/bin/lib/nunit.uiexception.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
ilffisrb
Assembly Version: 2.6.0.12035
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Charlie Poole

unread,
Feb 6, 2012, 6:30:31 PM2/6/12
to nunit-...@googlegroups.com
This seems to be a bug. Would you file a bug report on it please?

Charlie

> --
> You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to nunit-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
>

tph

unread,
Feb 6, 2012, 10:21:04 PM2/6/12
to NUnit-Discuss
How do I file a bug report?

Ryan Boggs

unread,
Feb 6, 2012, 10:28:38 PM2/6/12
to nunit-...@googlegroups.com
Hi,

Directions to reporting bugs can be found here:

Hope this helps.

Thanks,
Ryan

Charlie Poole

unread,
Feb 11, 2012, 4:48:47 PM2/11/12
to nunit-...@googlegroups.com
I added the bug myself. :-(

Charlie

> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.

> To view this discussion on the web visit
> https://groups.google.com/d/msg/nunit-discuss/-/UoAfhPhpreoJ.

Reply all
Reply to author
Forward
0 new messages