mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
feat: Better handling of JSON DateTimes in Net Standard
This commit is contained in:
parent
f33218f7a6
commit
18abe78550
4 changed files with 44 additions and 89 deletions
|
|
@ -10,29 +10,7 @@ namespace ICD.Common.Utils.Tests.Json
|
|||
public sealed class JsonUtilsTest
|
||||
{
|
||||
[Test]
|
||||
public void CacheTypeTest()
|
||||
{
|
||||
Assert.Inconclusive();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ParseDateTimeTest()
|
||||
{
|
||||
const string dataA = "2016-02-26T19:24:59";
|
||||
const string dataB = "2019-04-01T12:41:15-04:00";
|
||||
|
||||
Assert.DoesNotThrow(() => JsonUtils.ParseDateTime(dataA));
|
||||
Assert.DoesNotThrow(() => JsonUtils.ParseDateTime(dataB));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TryParseDateTimeTest()
|
||||
{
|
||||
Assert.Inconclusive();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PrintTest()
|
||||
public void FormatTest()
|
||||
{
|
||||
Assert.Inconclusive();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue