public void CanConvertDateToPST() { var utc9hourAhead = new DateTime(2019, 5, 30, 1, 0, 0); var result = TimeZoneConverter.GetLocalDate(utc9hourAhead); Assert.Equal("May-29-2019", result); }
public void CanConvertDateToPST() { var utc9hourAhead = new DateTime(2019, 5, 30, 1, 0, 0); var result = TimeZoneConverter.GetLocalDate(utc9hourAhead); var expected = new DateTime(2019, 5, 29, 16, 0, 0).ToString("MMM-dd-yyyy"); Assert.Equal(expected, result); }