14 lines
334 B
C#
14 lines
334 B
C#
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>();
|
||
|
|
}
|
||
|
|
}
|