mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 23:46:27 +00:00
23 lines
462 B
C#
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);
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|