Skip to content

Commit ee9cc2c

Browse files
authored
Merge pull request #9 from TensionDev/feature/nuget-update
Changed to reference TensionDev.UUID v2.1.0.
2 parents 6ab742f + 4af8a41 commit ee9cc2c

3 files changed

Lines changed: 31 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11+
## [v2.1.0] - 2026-03-05
12+
[v2.1.0](https://github.com/TensionDev/UUID.Serialization.SystemTextJson/releases/tag/v2.1.0)
13+
14+
### Changed
15+
- Changed to reference TensionDev.UUID v2.1.0.
16+
17+
1118
## [v2.0.0] - 2026-03-04
1219
[v2.0.0](https://github.com/TensionDev/UUID.Serialization.SystemTextJson/releases/tag/v2.0.0)
1320

TensionDev.UUID.Serialization.SystemTextJson.Tests/TestUuidSystemTextJsonConverter.cs renamed to TensionDev.UUID.Serialization.SystemTextJson.Tests/UuidSystemTextJsonConverterTests.cs

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,34 @@
77

88
namespace TensionDev.UUID.Serialization.SystemTextJson.Tests
99
{
10-
public class TestUuidSystemTextJsonConverter : IDisposable
10+
public class UuidSystemTextJsonConverterTests : IDisposable
1111
{
1212
private bool disposedValue;
1313

1414
private readonly UuidSystemTextJsonConverter _converter;
1515

16-
public TestUuidSystemTextJsonConverter()
16+
public UuidSystemTextJsonConverterTests()
1717
{
1818
_converter = new UuidSystemTextJsonConverter();
1919
}
2020

2121
[Theory]
22-
[InlineData(true)]
23-
[InlineData(false)]
24-
public void TestWrite(bool useNullOptions)
22+
[InlineData(true, "00000000-0000-0000-0000-000000000000")]
23+
[InlineData(true, "ffffffff-ffff-ffff-ffff-ffffffffffff")]
24+
[InlineData(true, "164a714c-0c79-11ec-82a8-0242ac130003")]
25+
[InlineData(true, "550e8400-e29b-41d4-a716-446655440000")]
26+
[InlineData(true, "1bf6935b-49e6-54cf-a9c8-51fb21c41b46")]
27+
[InlineData(false, "00000000-0000-0000-0000-000000000000")]
28+
[InlineData(false, "ffffffff-ffff-ffff-ffff-ffffffffffff")]
29+
[InlineData(false, "164a714c-0c79-11ec-82a8-0242ac130003")]
30+
[InlineData(false, "550e8400-e29b-41d4-a716-446655440000")]
31+
[InlineData(false, "1bf6935b-49e6-54cf-a9c8-51fb21c41b46")]
32+
public void TestWrite(bool useNullOptions, string input)
2533
{
2634
// Arrange
2735
using var ms = new MemoryStream();
2836
using var writer = new Utf8JsonWriter(ms);
29-
Uuid value = new Uuid();
37+
Uuid value = Uuid.Parse(input);
3038
JsonSerializerOptions? options = useNullOptions ? null : new JsonSerializerOptions();
3139

3240
// Act
@@ -91,12 +99,15 @@ public void TestReadEmptyString()
9199
Assert.NotNull(ex);
92100
}
93101

94-
[Fact]
95-
public void TestReadString()
102+
[Theory]
103+
[InlineData("00000000-0000-0000-0000-000000000000")]
104+
[InlineData("ffffffff-ffff-ffff-ffff-ffffffffffff")]
105+
[InlineData("164a714c-0c79-11ec-82a8-0242ac130003")]
106+
[InlineData("550e8400-e29b-41d4-a716-446655440000")]
107+
[InlineData("1bf6935b-49e6-54cf-a9c8-51fb21c41b46")]
108+
public void TestReadString(string input)
96109
{
97110
// Arrange
98-
// Use a canonical all-zero UUID representation which is commonly accepted by UUID parsers.
99-
const string input = "00000000-0000-0000-0000-000000000000";
100111
string jsonText = "\"" + input + "\"";
101112
byte[] json = Encoding.UTF8.GetBytes(jsonText);
102113
var reader = new Utf8JsonReader(json);
@@ -126,7 +137,7 @@ protected virtual void Dispose(bool disposing)
126137
}
127138

128139
// // TODO: override finalizer only if 'Dispose(bool disposing)' has code to free unmanaged resources
129-
// ~TestUuidSystemTextJsonConverter()
140+
// ~UuidSystemTextJsonConverterTests()
130141
// {
131142
// // Do not change this code. Put cleanup code in 'Dispose(bool disposing)' method
132143
// Dispose(disposing: false);

TensionDev.UUID.Serialization.SystemTextJson/TensionDev.UUID.Serialization.SystemTextJson.csproj

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1111
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1212
<PackageId>TensionDev.UUID.Serialization.SystemTextJson</PackageId>
13-
<Version>2.0.0</Version>
13+
<Version>2.1.0</Version>
1414
<Authors>TensionDev amsga</Authors>
1515
<Company>TensionDev</Company>
1616
<Product>TensionDev.UUID.Serialization.SystemTextJson</Product>
@@ -37,7 +37,7 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="TensionDev.UUID" Version="2.0.0" />
40+
<PackageReference Include="TensionDev.UUID" Version="2.1.0" />
4141
</ItemGroup>
4242

4343
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
@@ -50,16 +50,4 @@
5050
<PackageReference Include="System.Text.Json" Version="4.7.2" />
5151
</ItemGroup>
5252

53-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
54-
<PackageReference Include="System.Text.Json" Version="6.0.11" />
55-
</ItemGroup>
56-
57-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
58-
<PackageReference Include="System.Text.Json" Version="8.0.6" />
59-
</ItemGroup>
60-
61-
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
62-
<PackageReference Include="System.Text.Json" Version="10.0.0" />
63-
</ItemGroup>
64-
6553
</Project>

0 commit comments

Comments
 (0)