Skip to content

Commit 2f75e8b

Browse files
committed
Updated unit tests to expect Topic.Id exception
In a previous commit, I updated `Topic.Id` to throw an `InvalidOperationException` if a consumer attempted to change the `Id` (25bdeb4). I failed, however, to update the unit tests validating the default behavior. This commit resolves that.
1 parent db32581 commit 2f75e8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Tests/TopicTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void Create_ContentType_ReturnsDerivedTopic() {
5656
/// Creates a topic using the factory method, and ensures that the ID cannot be modified.
5757
/// </summary>
5858
[TestMethod]
59-
[ExpectedException(typeof(ArgumentException), "Topic permitted the ID to be reset; this should never happen.")]
59+
[ExpectedException(typeof(InvalidOperationException), "Topic permitted the ID to be reset; this should never happen.")]
6060
public void Id_ChangeValue_ThrowsArgumentException() {
6161

6262
var topic = TopicFactory.Create("Test", "ContentTypeDescriptor", 123);

0 commit comments

Comments
 (0)