1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Fixed warnings in tests

This commit is contained in:
Jkorf
2026-06-30 15:25:08 +02:00
parent 6238c17471
commit 68ad9ae114
2 changed files with 3 additions and 2 deletions
@@ -31,7 +31,7 @@ namespace CryptoExchange.Net.UnitTests.ConverterTests
[TestCase(-1, false)]
public void TestBoolConverterInts(int value, bool? expected)
{
var val = value == null ? "null" : $"{value}";
var val = $"{value}";
var output = JsonSerializer.Deserialize<STJBoolObject>($"{{ \"Value\": {val} }}", SerializerOptions.WithConverters(new TestSerializerContext()));
Assert.That(output!.Value == expected);
}