Skip to content

Commit 963d0a0

Browse files
Fix misleading variable name in test
Co-authored-by: RuntimeRascal <2422222+RuntimeRascal@users.noreply.github.com>
1 parent fed9098 commit 963d0a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/GhostDraw.Tests/ClearCanvasFeatureTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public void GlobalKeyboardHook_Dispose_ShouldNotThrowWithClearCanvasEvent()
6464
{
6565
// Arrange
6666
var hook = new GlobalKeyboardHook(_mockLogger.Object);
67-
var disposed = false;
68-
hook.ClearCanvasPressed += (s, e) => { disposed = !disposed; };
67+
var eventHandled = false;
68+
hook.ClearCanvasPressed += (s, e) => { eventHandled = !eventHandled; };
6969

7070
// Act & Assert - Dispose should work without throwing
7171
var exception = Record.Exception(() => hook.Dispose());

0 commit comments

Comments
 (0)