Throw exceptions for missing functionality rather than Debug.Break
- Fix unexpected abort in NUnit testruns - Tests should fail rather than crash, highlighting areas needing focus
This commit is contained in:
parent
9f6821305c
commit
4d84844f96
5 changed files with 19 additions and 8 deletions
|
|
@ -372,7 +372,11 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
AllowMultiple = false,
|
||||
AllowProtected = false,
|
||||
AllowContainers = false,
|
||||
Action = (selectedLibraryItems, listView) => System.Diagnostics.Debugger.Break() /* editButton_Click(s, null) */
|
||||
Action = (selectedLibraryItems, listView) =>
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
/* editButton_Click(s, null) */
|
||||
}
|
||||
});
|
||||
|
||||
// rename menu item
|
||||
|
|
@ -795,7 +799,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
private void shareFromLibraryButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: Should be rewritten to Register from cloudlibrary, include logic to add to library as needed
|
||||
System.Diagnostics.Debugger.Break();
|
||||
throw new NotImplementedException();
|
||||
|
||||
if (libraryView.SelectedItems.Count == 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue