You've already forked YY.EventLogReaderAssistant
mirror of
https://github.com/BDDSM/YY.EventLogReaderAssistant.git
synced 2025-06-30 22:14:05 +02:00
33 lines
806 B
C#
33 lines
806 B
C#
using System;
|
|
using Xunit;
|
|
|
|
namespace YY.EventLogAssistant.Services.Tests
|
|
{
|
|
public class IntExtensionsTests
|
|
{
|
|
#region Public Methods
|
|
|
|
[Fact]
|
|
public void ToDateTimeFormat_Test()
|
|
{
|
|
long sourceLong = 637149888000000;
|
|
DateTime checkDate = new DateTime(2020, 1, 19);
|
|
DateTime? resultDate = sourceLong.ToDateTimeFormat();
|
|
|
|
Assert.Equal(checkDate, resultDate);
|
|
}
|
|
|
|
[Fact]
|
|
public void ToNullableDateTimeELFormat_Test()
|
|
{
|
|
long sourceLong = 637149888000000;
|
|
DateTime checkDate = new DateTime(2020, 1, 19);
|
|
DateTime? resultDate = sourceLong.ToNullableDateTimeELFormat();
|
|
|
|
Assert.Equal(checkDate, resultDate);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|