Made colors equatable; added more tests; small improvements; changed test-data to cover more edge-cases

This commit is contained in:
DarthAffe committed 2024-07-20 16:25:53 +02:00
1 parent 9999681574
commit 2a26c4404f
26 files changed
+378 -152

No files matched your search

+6
View File
@@ -74,6 +74,9 @@ internal class Colors : IGeneratorFeature
#region Methods
/// <inheritdoc />
public bool Equals(IColor? other) => (other != null) && (R == other.R) && (G == other.G) && (B == other.B) && (A == other.A);
/// <inheritdoc />
public override string ToString() => $"[A: {A}, R: {R}, G: {G}, B: {B}]";
@@ -137,6 +140,9 @@ internal class Colors : IGeneratorFeature
#region Methods
/// <inheritdoc />
public bool Equals(IColor? other) => (other != null) && (R == other.R) && (G == other.G) && (B == other.B) && (A == other.A);
/// <inheritdoc />
public override string ToString() => $"[A: {A}, R: {R}, G: {G}, B: {B}]";