feat: add serialization tests for CharacterLocationCitation, CitationDelta, ContentBlockLocationCitation, PageLocationCitation, and DocumentContent classes

This commit is contained in:
Stevan Freeborn
2025-06-22 10:52:14 -05:00
parent 68e91fcdbb
commit 598eaaad94
6 changed files with 198 additions and 4 deletions
@@ -87,6 +87,16 @@ public class DocumentContentTests : SerializationTest
action.Should().Throw<ArgumentNullException>();
}
[Fact]
public void Constructor_WhenCalledWithSource_ItShouldInitializeSource()
{
var source = new DocumentSource("application/pdf", "data");
var result = new DocumentContent(source);
result.Source.Should().BeSameAs(source);
}
[Fact]
public void Constructor_WhenCalledWithSourceAndCacheControl_ItShouldInitializeSourceAndCacheControl()
{