You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
559 B
26 lines
559 B
12 years ago
|
using NUnit.Framework;
|
||
12 years ago
|
using NzbDrone.Common.Serializer;
|
||
12 years ago
|
using NzbDrone.Test.Common;
|
||
12 years ago
|
|
||
12 years ago
|
namespace NzbDrone.Libraries.Test.JsonTests
|
||
12 years ago
|
{
|
||
|
[TestFixture]
|
||
12 years ago
|
public class JsonFixture : TestBase
|
||
12 years ago
|
{
|
||
|
public class TypeWithNumbers
|
||
|
{
|
||
|
public int Id { get; set; }
|
||
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void should_be_able_to_deserialize_numbers()
|
||
|
{
|
||
|
var quality = new TypeWithNumbers { Id = 12 };
|
||
|
|
||
12 years ago
|
var json = Json.Serialize(quality);
|
||
12 years ago
|
|
||
12 years ago
|
Json.Deserialize<TypeWithNumbers>(json);
|
||
12 years ago
|
}
|
||
|
}
|
||
|
}
|