chore: Use var everywhere (#2294)

This commit is contained in:
Kamron Batman 2025-12-27 16:47:28 -08:00 • committed by GitHub
parent 0b34cc4417
commit ebaf104935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 873 additions and 873 deletions

View file

@ -35,7 +35,7 @@ public class DecimalSerializationTests
public void TestSerializeDecimal(decimal value)
{
// Arrange
byte[] buffer = new byte[sizeof(decimal)];
var buffer = new byte[sizeof(decimal)];
// Act
Write(buffer, value);

View file

@ -15,11 +15,11 @@ public class TypeConverterTests
public void TestReadAfterWrite()
{
// Arrange
Type itemType = typeof(Item);
var itemType = typeof(Item);
JsonSerializerOptions options = new JsonSerializerOptions();
var options = new JsonSerializerOptions();
TypeConverter converter = new TypeConverter();
var converter = new TypeConverter();
var bufferWriter = new ArrayBufferWriter<byte>();
using var jsonWriter = new Utf8JsonWriter(bufferWriter);
converter.Write(jsonWriter, itemType, options);
@ -28,11 +28,11 @@ public class TypeConverterTests
jsonWriter.Flush();
var jsonData = bufferWriter.WrittenSpan;
Utf8JsonReader jsonReader = new Utf8JsonReader(jsonData);
var jsonReader = new Utf8JsonReader(jsonData);
jsonReader.Read();
// Assert
Type readType = converter.Read(ref jsonReader, typeof(Type), options);
var readType = converter.Read(ref jsonReader, typeof(Type), options);
Assert.Equal(typeof(Item), readType);
}
}