Run TidyCode on all new classes

This commit is contained in:
tznind
2024-10-10 12:41:43 +01:00
parent 5a6aae694a
commit bcdb11e2f6
12 changed files with 145 additions and 140 deletions

View File

@@ -25,7 +25,7 @@ public class PopularityPaletteWithThresholdTests
{
// Arrange
var paletteBuilder = new PopularityPaletteWithThreshold (_colorDistance, 50);
List<Color> colors = new() { new (255, 0), new (0, 255) };
List<Color> colors = new () { new (255, 0), new (0, 255) };
// Act
List<Color> result = paletteBuilder.BuildPalette (colors, 0);
@@ -39,7 +39,7 @@ public class PopularityPaletteWithThresholdTests
{
// Arrange
var paletteBuilder = new PopularityPaletteWithThreshold (_colorDistance, 50);
List<Color> colors = new() { new (255, 0), new (255, 0) };
List<Color> colors = new () { new (255, 0), new (255, 0) };
// Act
List<Color> result = paletteBuilder.BuildPalette (colors, 256);
@@ -55,7 +55,7 @@ public class PopularityPaletteWithThresholdTests
// Arrange
var paletteBuilder = new PopularityPaletteWithThreshold (_colorDistance, 50); // Set merge threshold to 50
List<Color> colors = new List<Color>
List<Color> colors = new()
{
new (255, 0), // Red
new (250, 0), // Very close to Red
@@ -78,7 +78,7 @@ public class PopularityPaletteWithThresholdTests
// Arrange
var paletteBuilder = new PopularityPaletteWithThreshold (_colorDistance, 50);
List<Color> colors = new()
List<Color> colors = new ()
{
new (255, 0), // Red
new (0, 255) // Green
@@ -99,7 +99,7 @@ public class PopularityPaletteWithThresholdTests
// Arrange
var paletteBuilder = new PopularityPaletteWithThreshold (_colorDistance, 50);
List<Color> colors = new List<Color>
List<Color> colors = new()
{
new (255, 0), // Red
new (254, 0), // Close to Red