mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
25 lines
516 B
C#
25 lines
516 B
C#
|
using NUnit.Framework;
|
|||
|
using Newtonsoft.Json;
|
|||
|
|
|||
|
namespace NzbDrone.Libraries.Test.Json
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class JsonFixture
|
|||
|
{
|
|||
|
public class TypeWithNumbers
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void should_be_able_to_deserialize_numbers()
|
|||
|
{
|
|||
|
var quality = new TypeWithNumbers { Id = 12 };
|
|||
|
|
|||
|
var json = JsonConvert.SerializeObject(quality);
|
|||
|
|
|||
|
JsonConvert.DeserializeObject(json);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|