public void GetDateTime_WhenTimestampIs27November_ExpectCorrectDateTime() { const uint timestamp = 123206400; var dateTime = BrancaToken.GetDateTime(timestamp); dateTime.Should().Be(new DateTime(1973, 11, 27, 0, 0, 0, DateTimeKind.Utc)); }
public void GetDateTime_WhenTimestampIsMaxValue_ExpectCorrectDateTime() { const uint timestamp = uint.MaxValue; var dateTime = BrancaToken.GetDateTime(timestamp); dateTime.Should().Be(new DateTime(2106, 02, 07, 06, 28, 15, DateTimeKind.Utc)); }
public void GetDateTime_WhenTimestampIsZero_ExpectUnixTimeStart() { const uint timestamp = 0; var dateTime = BrancaToken.GetDateTime(timestamp); dateTime.Should().Be(new DateTime(1970, 01, 01, 0, 0, 0, DateTimeKind.Utc)); }