Skip to content

Commit

Permalink
remove unnecessary blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Mar 10, 2024
1 parent eaecb78 commit bb44ff6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Maui.DataGrid.Sample/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public static MauiApp CreateMauiApp()
.UseVisualRunner();
#else


_ = builder
.UseMauiApp<App>()
#if DEBUG
Expand All @@ -42,7 +41,6 @@ public static MauiApp CreateMauiApp()
});
#endif


return builder.Build();
}
}
1 change: 0 additions & 1 deletion Maui.DataGrid.Sample/Tests/ColumnsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public async void TestColumnsBindingFromViewModel()
Assert.Equal("Won", dataGrid.Columns[1].Title);
}


[Fact]
public async void SortOrderBindingOnlyWorksWhenLoaded()
{
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/Tests/ItemsSourceTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Maui.DataGrid.Sample.Tests;

using System.Collections.Generic;
using System.Collections.ObjectModel;
using Maui.DataGrid.Sample.Models;
Expand Down Expand Up @@ -34,7 +35,6 @@ public void BindsSelectedItem()
datagrid.CheckPropertyBindingWorks(DataGrid.SelectedItemProperty, _teams.ElementAt(2), _teams.ElementAt(3));
}


[Fact]
public async void SelectNonExistingItemNotPossible()
{
Expand Down
7 changes: 1 addition & 6 deletions Maui.DataGrid.Sample/Tests/PaginationTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Maui.DataGrid.Sample.Tests;

using System.Collections.Generic;
using Maui.DataGrid.Sample.Models;
using Maui.DataGrid.Sample.Tests.TestUtils;
Expand All @@ -20,7 +21,6 @@ public void PageCountDoesNotChangesWithBinding()

countViewModel.Item = 1;
Assert.Equal(2, dataGrid.PageCount);

}

[Fact]
Expand All @@ -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]
Expand Down Expand Up @@ -86,7 +84,6 @@ public void PageNumberResetsWhenPageSizeChanges()
Assert.Equal(3, dataGrid.PageNumber);
dataGrid.PageSize = 5;
Assert.Equal(1, dataGrid.PageNumber);

}

[Fact]
Expand All @@ -97,7 +94,5 @@ public void PageSizeListUpdatedWithUnknownNumber()
Assert.DoesNotContain(7, dataGrid.PageSizeList);
dataGrid.PageSize = 7;
Assert.Contains(7, dataGrid.PageSizeList);

}
}

2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/Tests/PaletteCollectionTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Maui.DataGrid.Sample.Tests;

using Xunit;

public class PaletteCollectionTest
Expand All @@ -10,7 +11,6 @@ public void EmptyPaletteCollection()

Assert.Empty(palette);
Assert.Equal(palette.GetColor(0, "item"), Colors.White);

}

[Fact]
Expand Down
1 change: 0 additions & 1 deletion Maui.DataGrid.Sample/Tests/PropertyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ internal static void TestProperty<T>(BindableProperty property, T testValue, T u
var anotherDataGrid = new DataGrid();
anotherDataGrid.CheckStyleSettingWorks(property, testValue);
}

}
1 change: 0 additions & 1 deletion Maui.DataGrid.Sample/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public MainViewModel()
Commands.Add("Refresh", new Command(CmdRefresh));
Commands.Add("Tapped", new Command(CmdTapped));


var picker = new Picker();
}

Expand Down

0 comments on commit bb44ff6

Please sign in to comment.