From d55a7763dfe550d24920567558ac4ede8c9eca0d Mon Sep 17 00:00:00 2001 From: "Zheng Li (BEYONDSOFT CONSULTING INC)" Date: Thu, 22 Aug 2024 09:07:08 +0800 Subject: [PATCH] Handle FeedBacks --- .../System/Windows/Forms/ToolStripMenuItemTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ToolStripMenuItemTests.cs b/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ToolStripMenuItemTests.cs index 53e14523cc6..c19782c7a2d 100644 --- a/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ToolStripMenuItemTests.cs +++ b/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ToolStripMenuItemTests.cs @@ -189,7 +189,7 @@ public static IEnumerable CultureInfo_Shortcut_TestData() public void ToolStripMenuItem_Ctor_ShouldInitializeCorrectly() { using Bitmap image = new(10, 10); - const string text = "Test Item"; + string text = "Test Item"; using ToolStripMenuItem itemWithImage = new(image); itemWithImage.Image.Should().Be(image); @@ -204,8 +204,8 @@ public void ToolStripMenuItem_Ctor_ShouldInitializeCorrectly() public void ToolStripMenuItem_Ctor_WithTextImageOnClickName_ShouldInitializeCorrectly() { using Bitmap image = new(10, 10); - const string text = "Test Item"; - const string name = "TestName"; + string text = "Test Item"; + string name = "TestName"; bool wasClicked = false; EventHandler onClick = (sender, e) => wasClicked = true; @@ -222,7 +222,7 @@ public void ToolStripMenuItem_Ctor_WithTextImageOnClickName_ShouldInitializeCorr public void ToolStripMenuItem_Ctor_WithTextImageOnClickShortcutKeys_ShouldInitializeCorrectly() { using Bitmap image = new(10, 10); - const string text = "Test Item"; + string text = "Test Item"; bool wasClicked = false; EventHandler onClick = (sender, e) => wasClicked = true; Keys shortcutKeys = Keys.Control | Keys.A;