added json.net tests for mono.

This commit is contained in:
Keivan Beigi 2013-04-16 16:21:03 -07:00
commit 861c07b2fa
8 changed files with 150 additions and 9 deletions

View file

@ -0,0 +1,24 @@
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);
}
}
}