1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Libraries.Test/Json/JsonFixture.cs
2013-05-12 08:18:17 -07:00

27 lines
602 B
C#

using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common;
namespace NzbDrone.Libraries.Test.Json
{
[TestFixture]
public class JsonFixture : TestBase<JsonSerializer>
{
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 = Subject.Serialize(quality);
Subject.Deserialize<TypeWithNumbers>(json);
}
}
}