From 789cfa451d4539e95d17994f177367df96ca8b03 Mon Sep 17 00:00:00 2001 From: IvenBach Date: Wed, 24 Jul 2019 11:53:59 -0700 Subject: [PATCH] Restate accurately what property is checking --- .../UI/UnitTesting/TestExplorerViewModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs b/Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs index 6b94b39fc5..4f9642e9a6 100644 --- a/Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs +++ b/Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs @@ -129,7 +129,7 @@ public CollectionViewGroup MouseOverGroup private void RefreshContextMenu() { - OnPropertyChanged(nameof(IsSelectionATest)); + OnPropertyChanged(nameof(IsCursorOverTest)); OnPropertyChanged(nameof(DisplayUnignoreTestLabel)); OnPropertyChanged(nameof(DisplayIgnoreTestLabel)); } @@ -237,7 +237,7 @@ public string TestToggleLabel { get { - if (IsSelectionATest) + if (IsCursorOverTest) { return string.Empty; } @@ -251,11 +251,11 @@ public string TestToggleLabel public string UnignoreTestLabel => RubberduckUI.TestExplorer_TestToggle_Unignore; public string IgnoreTestLabel => RubberduckUI.TestExplorer_TestToggle_Ignore; - public bool IsSelectionATest => SelectedItem != null; + public bool IsCursorOverTest => SelectedItem != null; private TestMethod _selectedTestMethod => ((TestMethodViewModel)SelectedItem).Method; - public bool DisplayUnignoreTestLabel => IsSelectionATest && _selectedTestMethod.IsIgnored; - public bool DisplayIgnoreTestLabel => IsSelectionATest && !_selectedTestMethod.IsIgnored; + public bool DisplayUnignoreTestLabel => IsCursorOverTest && _selectedTestMethod.IsIgnored; + public bool DisplayIgnoreTestLabel => IsCursorOverTest && !_selectedTestMethod.IsIgnored; #region Commands