Perform mass cleanup

This is cleanup based on both new .NET functionality (in 6 and 7) as well as a ton of simplifications and things that were missed that were caught due to the cleanup.
This commit is contained in:
Matt Nadareski
2023-04-19 16:39:58 -04:00
parent fd5fd79b95
commit 728b5d6b27
95 changed files with 1353 additions and 1572 deletions

View File

@@ -27,7 +27,7 @@ namespace SabreTools.Test.Filtering
public void PopulateExclusionEmptyListTest()
{
// Setup the list
List<string> exclusions = new List<string>();
List<string> exclusions = new();
// Setup the remover
var remover = new Remover();
@@ -43,7 +43,7 @@ namespace SabreTools.Test.Filtering
public void PopulateExclusionHeaderFieldTest()
{
// Setup the list
List<string> exclusions = new List<string>
List<string> exclusions = new()
{
"header.datname",
};
@@ -62,7 +62,7 @@ namespace SabreTools.Test.Filtering
public void PopulateExclusionMachineFieldTest()
{
// Setup the list
List<string> exclusions = new List<string>
List<string> exclusions = new()
{
"machine.name",
};
@@ -81,7 +81,7 @@ namespace SabreTools.Test.Filtering
public void PopulateExclusionDatItemFieldTest()
{
// Setup the list
List<string> exclusions = new List<string>
List<string> exclusions = new()
{
"item.name",
};
@@ -115,7 +115,7 @@ namespace SabreTools.Test.Filtering
public void PopulateFilterEmptyListTest()
{
// Setup the list
List<string> filters = new List<string>();
List<string> filters = new();
// Setup the filter
var filter = new Filter();
@@ -130,7 +130,7 @@ namespace SabreTools.Test.Filtering
public void PopulateFilterMachineFieldTest()
{
// Setup the list
List<string> filters = new List<string>
List<string> filters = new()
{
"machine.name:foo",
"!machine.name:bar",
@@ -150,7 +150,7 @@ namespace SabreTools.Test.Filtering
public void PopulateFilterDatItemFieldTest()
{
// Setup the list
List<string> filters = new List<string>
List<string> filters = new()
{
"item.name:foo",
"!item.name:bar"