mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Added test case for serializing with PlaylistElementConverter
This commit is contained in:
parent
8485e23943
commit
c672b6158b
22
SpotifyAPI.Web.Tests/Models/PlayableItemConverterTest.cs
Normal file
22
SpotifyAPI.Web.Tests/Models/PlayableItemConverterTest.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace SpotifyAPI.Web.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class PPlayableItemConverterTest
|
||||
{
|
||||
[Test]
|
||||
public void PlayableItemConverter_CanSerialize()
|
||||
{
|
||||
var context = new CurrentlyPlayingContext { Item = new FullTrack() };
|
||||
|
||||
Assert.DoesNotThrow(() =>
|
||||
{
|
||||
var serialized = JsonConvert.SerializeObject(context);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user