public void ToDateTime_Utc() { DateOnly date = new DateOnly(2000, 1, 1); DateTime expectedDate = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); DateTime dateTime1 = date.ToUtcDateTime(); DateTime dateTime2 = date.ToDateTime(DateTimeKind.Utc); Assert.Equal(expectedDate, dateTime1); Assert.Equal(expectedDate, dateTime2); }