feat: add serialization tests for CharacterLocationCitation, CitationDelta, ContentBlockLocationCitation, PageLocationCitation, and DocumentContent classes
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user