Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v2.1.0] - 2026-03-05
[v2.1.0](https://github.com/TensionDev/UUID.Serialization.JsonNet/releases/tag/v2.1.0)

### Changed
- Changed to reference TensionDev.UUID v2.1.0.


## [v2.0.0] - 2026-03-04
[v2.0.0](https://github.com/TensionDev/UUID.Serialization.JsonNet/releases/tag/v2.0.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,69 +16,75 @@
_converter = new UuidJsonNetConverter();
}

[Fact]
public void TestReadJson()
[Theory]
[InlineData("00000000-0000-0000-0000-000000000000")]
[InlineData("ffffffff-ffff-ffff-ffff-ffffffffffff")]
[InlineData("164a714c-0c79-11ec-82a8-0242ac130003")]
[InlineData("550e8400-e29b-41d4-a716-446655440000")]
[InlineData("1bf6935b-49e6-54cf-a9c8-51fb21c41b46")]
public void TestReadJson(string validUuidString)
{
// Arrange
const string validUuidString = "00000000-0000-0000-0000-000000000000";
var readerMock = new Mock<JsonReader>(MockBehavior.Strict);
readerMock.SetupGet(r => r.TokenType).Returns(JsonToken.String);
readerMock.SetupGet(r => r.Value).Returns((object)validUuidString);

var converter = new UuidJsonNetConverter();

// existingValue must be non-nullable; obtain an instance via Parse to satisfy parameter constraints.
Uuid existingValue = Uuid.Parse(validUuidString);
var serializer = new JsonSerializer();

// Act
Uuid result = converter.ReadJson(readerMock.Object, typeof(Uuid), existingValue, hasExistingValue: false, serializer: serializer);
Uuid result = _converter.ReadJson(readerMock.Object, typeof(Uuid), existingValue, hasExistingValue: false, serializer: serializer);

// Assert
Assert.NotNull(result);
Assert.Equal(validUuidString, result.ToString());
}

[Fact]
public void TestWriteJson()
public void TestReadJsonInvalidType()
{
// Arrange
const string validUuidString = "00000000-0000-0000-0000-000000000000";
var readerMock = new Mock<JsonReader>(MockBehavior.Strict);
readerMock.SetupGet(r => r.TokenType).Returns(JsonToken.Undefined);
readerMock.SetupGet(r => r.Value).Returns((object)validUuidString);

// existingValue must be non-nullable; obtain an instance via Parse to satisfy parameter constraints.
Uuid existingValue = Uuid.Parse(validUuidString);
var serializer = new JsonSerializer();

Assert.Throws<JsonSerializationException>(() =>
{
// Act
_converter.ReadJson(readerMock.Object, typeof(Uuid), existingValue, hasExistingValue: false, serializer: serializer);
});
}

[Theory]
[InlineData("00000000-0000-0000-0000-000000000000")]
[InlineData("ffffffff-ffff-ffff-ffff-ffffffffffff")]
[InlineData("164a714c-0c79-11ec-82a8-0242ac130003")]
[InlineData("550e8400-e29b-41d4-a716-446655440000")]
[InlineData("1bf6935b-49e6-54cf-a9c8-51fb21c41b46")]
public void TestWriteJson(string validUuidString)
{
var writerMock = new Mock<JsonWriter>(MockBehavior.Strict);
object? capturedValue = null;

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 73 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
// Setup to accept any object and capture it
writerMock.Setup(w => w.WriteValue(It.IsAny<string?>()))

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 75 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
.Callback<string?>(v => capturedValue = v)

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 76 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
.Verifiable();

var serializerMock = new Mock<JsonSerializer>(MockBehavior.Loose);

// Attempt to create an instance of the Uuid type.
// This will succeed for structs and for classes with a public parameterless constructor.
// If it fails, mark test inconclusive because we cannot safely fabricate the dependency.
TensionDev.UUID.Uuid value;
try
{
var instance = Activator.CreateInstance(typeof(TensionDev.UUID.Uuid));
if (instance == null)
{
// This can happen if the type is a non-instantiable class (abstract) or Activator returns null.
Assert.Fail("Could not create an instance of TensionDev.UUID.Uuid (Activator.CreateInstance returned null). Provide a parameterless constructor or update the test environment.");
return;
}

value = (TensionDev.UUID.Uuid)instance;
}
catch (Exception ex)
{
// xUnit does not provide Assert.Inconclusive; use Assert.Fail to report the diagnostic and stop the test.
Assert.Fail("Could not create an instance of TensionDev.UUID.Uuid: " + ex.Message);
return;
}
TensionDev.UUID.Uuid value = TensionDev.UUID.Uuid.Parse(validUuidString);

// Act
_converter.WriteJson(writerMock.Object, value, serializerMock.Object);

// Assert
writerMock.Verify(w => w.WriteValue(It.IsAny<string?>()), Times.Once, "WriteValue should be called exactly once.");

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on macos-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on ubuntu-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x on windows-latest

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 87 in TensionDev.UUID.Serialization.JsonNet.Tests/UuidJsonNetConverterTests.cs

View workflow job for this annotation

GitHub Actions / .NET 8.0.x

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
// Ensure the captured value matches the value.ToString() result
var expected = value.ToString();
Assert.NotNull(capturedValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageId>TensionDev.UUID.Serialization.JsonNet</PackageId>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
<Authors>TensionDev amsga</Authors>
<Company>TensionDev</Company>
<Product>TensionDev.UUID.Serialization.JsonNet</Product>
Expand Down Expand Up @@ -38,7 +38,7 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="TensionDev.UUID" Version="2.0.0" />
<PackageReference Include="TensionDev.UUID" Version="2.1.0" />
</ItemGroup>

</Project>