Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Dec 31, 2024
1 parent 4d2d5f1 commit 2a8dc6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UnitTests/ConsoleDrivers/V2/MouseInterpreterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public void TestMouseEventSequences_InterpretedOnlyAsFlag (List<MouseEventArgs>
// Act and Assert: Process all but the last event and ensure they yield no results
for (int i = 0; i < events.Count - 1; i++)
{
var intermediateResult = interpreter.Process (events [i]);
var intermediateResult = interpreter.Process (events [i]).Single();
Assert.Equal (events [i].Flags,intermediateResult.Flags);
}

// Process the final event and verify the expected result
var finalResult = interpreter.Process (events [^1]); // ^1 is the last item in the list
Assert.Equal (expected, finalResult.Flags);
var finalResult = interpreter.Process (events [^1]).ToArray (); // ^1 is the last item in the list
Assert.Equal (expected, finalResult [1].Flags);
}


Expand Down

0 comments on commit 2a8dc6e

Please sign in to comment.