diff options
| author | crobibero <cody@robibe.ro> | 2020-12-09 19:57:25 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-09 19:57:25 -0700 |
| commit | 681a0f3e75f3675c449aba426ceb8fe3241d470c (patch) | |
| tree | 79f30ae9beab1c4d4e43b587f18ac234d49350ef | |
| parent | c955f196341b4dbaf993eecdffb3c994e66b53ec (diff) | |
Add nullable guid test
| -rw-r--r-- | tests/Jellyfin.Common.Tests/Json/JsonGuidConverterTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Jellyfin.Common.Tests/Json/JsonGuidConverterTests.cs b/tests/Jellyfin.Common.Tests/Json/JsonGuidConverterTests.cs index fc17573fb..1e1cde957 100644 --- a/tests/Jellyfin.Common.Tests/Json/JsonGuidConverterTests.cs +++ b/tests/Jellyfin.Common.Tests/Json/JsonGuidConverterTests.cs @@ -57,5 +57,13 @@ namespace Jellyfin.Common.Tests.Json var str = JsonSerializer.Serialize(guid, _options); Assert.Equal($"\"{guid:N}\"", str); } + + [Fact] + public void Serialize_Nullable_Success() + { + Guid? guid = new Guid("531797E9-9457-40E0-88BC-B1D6D38752FA"); + var str = JsonSerializer.Serialize(guid, _options); + Assert.Equal($"\"{guid:N}\"", str); + } } } |
