stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -71,16 +71,16 @@ public sealed class HlcTimestampJsonConverterTests
}
[Fact]
public void Deserialize_Null_ReturnsZero()
public void Deserialize_Null_ThrowsJsonException()
{
// Arrange
var json = "null";
// Act
var result = JsonSerializer.Deserialize<HlcTimestamp>(json, _options);
var act = () => JsonSerializer.Deserialize<HlcTimestamp>(json, _options);
// Assert
result.Should().Be(default(HlcTimestamp));
// Assert — converter intentionally throws; use NullableHlcTimestampJsonConverter for nullable timestamps.
act.Should().Throw<JsonException>();
}
[Fact]