Bug 1098 - Exception when saving NUnit options
Summary: Exception when saving NUnit options
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 2.6
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-09-28 08:26 UTC by Thomas Skovsende
Modified: 2011-09-30 00:38 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Thomas Skovsende 2011-09-28 08:26:45 UTC
I open the Unit Testing view, right click on the root node and choose options.
Then I click "Exclude the following categories, Press Add and enter my category(UiTest) and press ok to save, which gives me the following exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Options can't be saved.

   at MonoDevelop.NUnit.UnitTest.OnSaveOptions(OptionsData[] data)

   at MonoDevelop.NUnit.UnitTest.SaveOptions()

   at MonoDevelop.NUnit.UnitTest.SetOptions(ICloneable ops, String configuration)

   at MonoDevelop.NUnit.NUnitOptionsWidget.Store(Properties customizationObject)

   at MonoDevelop.NUnit.NUnitOptionsPanel.ApplyChanges()

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ApplyChanges()

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnButtonOkClicked(Object sender, EventArgs e)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
Comment 1 Mike Krüger 2011-09-30 00:38:42 UTC
fixed.