mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Add nullable guid test
This commit is contained in:
parent
c955f19634
commit
681a0f3e75
1 changed files with 8 additions and 0 deletions
|
@ -57,5 +57,13 @@ namespace Jellyfin.Common.Tests.Json
|
||||||
var str = JsonSerializer.Serialize(guid, _options);
|
var str = JsonSerializer.Serialize(guid, _options);
|
||||||
Assert.Equal($"\"{guid:N}\"", str);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue