Skip to content

Commit 2ef64fd

Browse files
committed
Fix exception type being checked
1 parent 1e25dcf commit 2ef64fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/NFUnitTestThread/UnitTestTimeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ public void Timer_TimerCallback_Null_Test8()
433433

434434
Debug.WriteLine("Creating timer: " +
435435
DateTime.UtcNow.ToString());
436-
Assert.Trows(typeof(Exception), () =>
436+
Assert.Trows(typeof(ArgumentNullException), () =>
437437
{
438-
Debug.WriteLine("Passing callback parameter to a timer should throw exception");
438+
Debug.WriteLine("Passing a 'null' callback parameter to a timer should throw exception");
439439
Timer stateTimer = new Timer(null, autoEvent, 1000, 250);
440440
Debug.WriteLine("Waiting and verifying");
441441
autoEvent.WaitOne(7500, false);

0 commit comments

Comments
 (0)