Added test case for serializing with PlaylistElementConverter

This commit is contained in:
Jonas Dellinger 2020-06-16 20:48:34 +02:00
parent 8485e23943
commit c672b6158b
2 changed files with 22 additions and 0 deletions

View 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);
});
}
}
}