-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Added integrations tests from WinUI for CalendarView and Calend…
…arDatePicker
- Loading branch information
1 parent
c8c26db
commit 1011519
Showing
25 changed files
with
8,923 additions
and
243 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/Uno.UI.RuntimeTests/Helpers/DateTimeOffsetExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Uno.UI.RuntimeTests.Helpers | ||
{ | ||
internal static class DateTimeOffsetExtensions | ||
{ | ||
internal static long UniversalTime(this DateTimeOffset dto) | ||
{ | ||
return dto.UtcTicks; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Uno.UI.RuntimeTests.Helpers | ||
{ | ||
internal static class ListExtensions | ||
{ | ||
// Helpers for WinUI code compatibility | ||
internal static T GetAt<T>(this List<T> list, int index) => list[index]; | ||
|
||
internal static T GetAt<T>(this IList<T> list, int index) => list[index]; | ||
|
||
internal static T GetAt<T>(this IReadOnlyList<T> list, int index) => list[index]; | ||
|
||
internal static void SetAt<T>(this IList<T> list, int index, T value) => list[index] = value; | ||
|
||
internal static void Append<T>(this IList<T> list, T item) => list.Add(item); | ||
} | ||
} |
Oops, something went wrong.