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 18, 2024
1 parent c8988c0 commit 9170f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Maui.DataGrid.Sample/Tests/PropertyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void TestPropertiesSetsProperly()
private void Command2() { }

internal static void TestProperty<T>(BindableProperty property, T testValue, T updatedValue)
where T : notnull
{
var dataGrid = new DataGrid();
dataGrid.CheckPropertyBindingWorks(property, testValue, updatedValue);
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/Tests/TestUtils/TestExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static async Task<object> GetValueSafe(this BindableObject bindableObject
return bindableObject.GetValue(property);
}

public static async void CheckPropertyBindingWorks<T>(this BindableObject bindableObject, BindableProperty property, T testValue, T updatedValue)
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

0 comments on commit 9170f75

Please sign in to comment.