Skip to content

Commit 8ba8773

Browse files
Assert that AlreadyClosedException message contains the prefix we want
1 parent 647ea58 commit 8ba8773

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/client/Unit/src/unit/TestExceptionMessages.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public void TestAlreadyClosedExceptionMessage()
6767
} catch (AlreadyClosedException e)
6868
{
6969
Assert.That(e, Is.TypeOf(typeof(AlreadyClosedException)));
70+
Assert.IsTrue(e.Message.StartsWith("Already closed"));
7071
}
7172
}
7273
}

0 commit comments

Comments
 (0)