1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-06 03:18:47 +00:00
Lidarr/NzbDrone.Libraries.Test/JsonTests/JsonFixture.cs

24 lines
522 B
C#
Raw Normal View History

2013-05-12 19:52:55 -07:00
using NUnit.Framework;
2013-05-12 08:18:17 -07:00
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common;
2013-04-16 16:21:03 -07:00
2013-05-12 19:52:55 -07:00
namespace NzbDrone.Libraries.Test.JsonTests
2013-04-16 16:21:03 -07:00
{
[TestFixture]
2013-05-12 19:52:55 -07:00
public class JsonFixture : TestBase
2013-04-16 16:21:03 -07:00
{
public class TypeWithNumbers
{
public int Id { get; set; }
}
[Test]
public void should_be_able_to_deserialize_numbers()
{
var quality = new TypeWithNumbers { Id = 12 };
Json.Deserialize<TypeWithNumbers>(quality.ToJson());
2013-04-16 16:21:03 -07:00
}
}
}