diff --git a/Maui.DataGrid.Sample/MauiProgram.cs b/Maui.DataGrid.Sample/MauiProgram.cs index e3d7d02..1ab8c78 100644 --- a/Maui.DataGrid.Sample/MauiProgram.cs +++ b/Maui.DataGrid.Sample/MauiProgram.cs @@ -22,7 +22,6 @@ public static MauiApp CreateMauiApp() .UseVisualRunner(); #else - _ = builder .UseMauiApp() #if DEBUG @@ -42,7 +41,6 @@ public static MauiApp CreateMauiApp() }); #endif - return builder.Build(); } } diff --git a/Maui.DataGrid.Sample/Tests/ColumnsTest.cs b/Maui.DataGrid.Sample/Tests/ColumnsTest.cs index 892c854..8486732 100644 --- a/Maui.DataGrid.Sample/Tests/ColumnsTest.cs +++ b/Maui.DataGrid.Sample/Tests/ColumnsTest.cs @@ -46,7 +46,6 @@ public async void TestColumnsBindingFromViewModel() Assert.Equal("Won", dataGrid.Columns[1].Title); } - [Fact] public async void SortOrderBindingOnlyWorksWhenLoaded() { diff --git a/Maui.DataGrid.Sample/Tests/ItemsSourceTest.cs b/Maui.DataGrid.Sample/Tests/ItemsSourceTest.cs index dbaddb2..b15cdab 100644 --- a/Maui.DataGrid.Sample/Tests/ItemsSourceTest.cs +++ b/Maui.DataGrid.Sample/Tests/ItemsSourceTest.cs @@ -1,4 +1,5 @@ namespace Maui.DataGrid.Sample.Tests; + using System.Collections.Generic; using System.Collections.ObjectModel; using Maui.DataGrid.Sample.Models; @@ -34,7 +35,6 @@ public void BindsSelectedItem() datagrid.CheckPropertyBindingWorks(DataGrid.SelectedItemProperty, _teams.ElementAt(2), _teams.ElementAt(3)); } - [Fact] public async void SelectNonExistingItemNotPossible() { diff --git a/Maui.DataGrid.Sample/Tests/PaginationTest.cs b/Maui.DataGrid.Sample/Tests/PaginationTest.cs index 8c0bf85..4af278f 100644 --- a/Maui.DataGrid.Sample/Tests/PaginationTest.cs +++ b/Maui.DataGrid.Sample/Tests/PaginationTest.cs @@ -1,4 +1,5 @@ namespace Maui.DataGrid.Sample.Tests; + using System.Collections.Generic; using Maui.DataGrid.Sample.Models; using Maui.DataGrid.Sample.Tests.TestUtils; @@ -20,7 +21,6 @@ public void PageCountDoesNotChangesWithBinding() countViewModel.Item = 1; Assert.Equal(2, dataGrid.PageCount); - } [Fact] @@ -30,13 +30,11 @@ public void PageNumberDoesNotExceedsLimit() Assert.Equal(1, dataGrid.PageNumber); - dataGrid.PageNumber = 2; Assert.Equal(2, dataGrid.PageNumber); dataGrid.PageNumber = 3; Assert.Equal(2, dataGrid.PageNumber); - } [Fact] @@ -86,7 +84,6 @@ public void PageNumberResetsWhenPageSizeChanges() Assert.Equal(3, dataGrid.PageNumber); dataGrid.PageSize = 5; Assert.Equal(1, dataGrid.PageNumber); - } [Fact] @@ -97,7 +94,5 @@ public void PageSizeListUpdatedWithUnknownNumber() Assert.DoesNotContain(7, dataGrid.PageSizeList); dataGrid.PageSize = 7; Assert.Contains(7, dataGrid.PageSizeList); - } } - diff --git a/Maui.DataGrid.Sample/Tests/PaletteCollectionTest.cs b/Maui.DataGrid.Sample/Tests/PaletteCollectionTest.cs index 3dd7ed1..ee96788 100644 --- a/Maui.DataGrid.Sample/Tests/PaletteCollectionTest.cs +++ b/Maui.DataGrid.Sample/Tests/PaletteCollectionTest.cs @@ -1,4 +1,5 @@ namespace Maui.DataGrid.Sample.Tests; + using Xunit; public class PaletteCollectionTest @@ -10,7 +11,6 @@ public void EmptyPaletteCollection() Assert.Empty(palette); Assert.Equal(palette.GetColor(0, "item"), Colors.White); - } [Fact] diff --git a/Maui.DataGrid.Sample/Tests/PropertyTest.cs b/Maui.DataGrid.Sample/Tests/PropertyTest.cs index 39d3046..4d20b18 100644 --- a/Maui.DataGrid.Sample/Tests/PropertyTest.cs +++ b/Maui.DataGrid.Sample/Tests/PropertyTest.cs @@ -50,5 +50,4 @@ internal static void TestProperty(BindableProperty property, T testValue, T u var anotherDataGrid = new DataGrid(); anotherDataGrid.CheckStyleSettingWorks(property, testValue); } - } diff --git a/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs b/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs index f5fa130..9310bfd 100644 --- a/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs +++ b/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs @@ -26,7 +26,6 @@ public MainViewModel() Commands.Add("Refresh", new Command(CmdRefresh)); Commands.Add("Tapped", new Command(CmdTapped)); - var picker = new Picker(); }