public static void GetHashCodeTest() { Assert.Equal(DateOnly.MinValue.DayNumber, DateOnly.MinValue.GetHashCode()); Assert.Equal(DateOnly.MaxValue.DayNumber, DateOnly.MaxValue.GetHashCode()); DateOnly dateOnly = DateOnly.FromDateTime(DateTime.Today); Assert.Equal(dateOnly.DayNumber, dateOnly.GetHashCode()); }