mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
23 lines
522 B
C#
23 lines
522 B
C#
using NUnit.Framework;
|
|
using NzbDrone.Common.Serializer;
|
|
using NzbDrone.Test.Common;
|
|
|
|
namespace NzbDrone.Libraries.Test.JsonTests
|
|
{
|
|
[TestFixture]
|
|
public class JsonFixture : TestBase
|
|
{
|
|
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());
|
|
}
|
|
}
|
|
}
|