Skip to content

Commit

Permalink
Handle FeedBacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheng-Li01 committed Aug 22, 2024
1 parent f2968c2 commit d55a776
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static IEnumerable<object[]> 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);
Expand All @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit d55a776

Please sign in to comment.