public void GetEmptyDateTimeTest() { var dateTime = DateTime.Today; var time = new TimeValue(); time.GetDateTime(dateTime).Should().Be(dateTime); }
public void GetDateTimeTest() { var dateTime = DateTime.Now; var timeSpan = new TimeSpan(0, 18, 23, 56, 344); var time = new TimeValue(timeSpan.Hours, timeSpan.Minutes, timeSpan.Seconds, timeSpan.Milliseconds); time.GetDateTime(dateTime).Should().Be(dateTime.Date.Add(timeSpan)); }