Skip to content

Commit

Permalink
fix nullability warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Apr 17, 2024
1 parent 125eb57 commit 9d9a382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Maui.DataGrid.Sample/Tests/TestUtils/TestExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static async Task<object> GetValueSafe(this BindableObject bindableObject
}

public static async void CheckPropertyBindingWorks<T>(this BindableObject bindableObject, BindableProperty property, T testValue, T updatedValue)
where T : notnull
{
Assert.Equal(property.DefaultValue, await bindableObject.GetValueSafe(property));

Expand Down Expand Up @@ -52,6 +53,7 @@ public static async void DispatchIfRequired(this BindableObject bindableObject,
}

internal static void CheckStyleSettingWorks<T>(this NavigableElement element, BindableProperty property, T value)
where T : notnull
{
var style = new Style(element.GetType())
{
Expand Down

0 comments on commit 9d9a382

Please sign in to comment.