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
@@ -0,0 +1,14 @@
namespace AnthropicClient.Tests.Unit.Json;
public class CitationConverterTests : SerializationTest
{
[Fact]
public void JsonDeserialization_WhenTypeIsUnknown_ItThrowException()
{
var json = @"{ ""type"": ""unknown"" }";
var action = () => Deserialize<Citation>(json);
action.Should().Throw<JsonException>();
}
}