Skip to content

Commit 73ffb36

Browse files
Update test/DemaConsulting.SpdxModel.Tests/Transforms/SpdxRelationshipsTests.cs
Co-authored-by: Copilot <[email protected]>
1 parent 3af84b9 commit 73ffb36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/DemaConsulting.SpdxModel.Tests/Transforms/SpdxRelationshipsTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public void AddRelationshipBadId()
6666
RelatedSpdxElement = "SPDXRef-Package-2",
6767
RelationshipType = SpdxRelationshipType.DependsOn
6868
});
69-
}, "Expected exception for invalid SPDX ID was not thrown.");
69+
});
70+
Assert.AreEqual("Invalid SPDX ID: SPDXRef-Package-Missing", exception.Message, "Unexpected exception message.");
7071

7172
// Assert
7273
Assert.AreEqual(0, document.Relationships.Length);

0 commit comments

Comments
 (0)