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