Files
anthropic-client/tests/AnthropicClient.Tests/Unit/Json/CitationConverterTests.cs
T

14 lines
334 B
C#
Raw Normal View History

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>();
}
}