mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
fixed disk scan scheduler.
This commit is contained in:
parent
42849d3276
commit
687f8d9384
23 changed files with 140 additions and 142 deletions
25
NzbDrone.Libraries.Test/JsonTests/JsonFixture.cs
Normal file
25
NzbDrone.Libraries.Test/JsonTests/JsonFixture.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
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 };
|
||||
|
||||
var json = Json.Serialize(quality);
|
||||
|
||||
Json.Deserialize<TypeWithNumbers>(json);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue