Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Apache.Arrow.Tests/Date32ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static IEnumerable<object[]> GetDateTimeOffsetsData() =>

#if NET6_0_OR_GREATER
public static IEnumerable<object[]> GetDateOnlyData() =>
TestDateAndTimeData.ExampleDates.Select(d => new object[] { DateOnly.FromDateTime(d) });
TestDateAndTimeData.ExampleDateOnlyDates.Select(d => new object[] { d });
#endif

public class AppendNull
Expand Down
2 changes: 1 addition & 1 deletion test/Apache.Arrow.Tests/Date64ArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static IEnumerable<object[]> GetDateTimeOffsetsData() =>

#if NET6_0_OR_GREATER
public static IEnumerable<object[]> GetDateOnlyData() =>
TestDateAndTimeData.ExampleDates.Select(d => new object[] { DateOnly.FromDateTime(d) });
TestDateAndTimeData.ExampleDateOnlyDates.Select(d => new object[] { d });
#endif

public class AppendNull
Expand Down
9 changes: 9 additions & 0 deletions test/Apache.Arrow.Tests/TestDateAndTimeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ from date in _exampleDates
from kind in _exampleKinds
select DateTime.SpecifyKind(date, kind);

#if NET6_0_OR_GREATER
/// <summary>
/// Gets a collection of example dates (i.e. with a zero time component) as DateOnly values.
/// </summary>
public static IEnumerable<DateOnly> ExampleDateOnlyDates =>
from date in _exampleDates
select DateOnly.FromDateTime(date);
#endif

/// <summary>
/// Gets a collection of example times
/// </summary>
Expand Down