mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 15:36:26 +00:00
19 lines
439 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|