Spotify.NET/SpotifyAPI.Tests/UtilTest.cs
2018-04-01 18:58:26 +02:00

19 lines
439 B
C#

using System;
using NUnit.Framework;
using SpotifyAPI.Web;
namespace SpotifyAPI.Tests
{
[TestFixture]
public class UtilTest
{
[Test]
public void TimestampShouldBeNoFloatingPoint()
{
string timestamp = DateTime.Now.ToUnixTimeMillisecondsPoly().ToString();
StringAssert.DoesNotContain(".", timestamp);
StringAssert.DoesNotContain(",", timestamp);
}
}
}