Spotify.NET/SpotifyAPI.Web.Tests/Models/PlayableItemConverterTest.cs

23 lines
462 B
C#

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