Skip to content

Commit

Permalink
Automated JetBrains cleanup
Browse files Browse the repository at this point in the history
Co-authored-by:  <[email protected]>
  • Loading branch information
github-actions[bot] committed Nov 30, 2024
1 parent b5abbac commit 0d1c24e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public Pixel Blend(Pixel pixelAbove)
case PixelBackgroundMode.Shaded:
#if DEBUG
if (pixelAbove.Foreground.Symbol.Text != " ")
throw new ArgumentOutOfRangeException(nameof(pixelAbove), "Someone is attempting to shade a pixel with a non-blank symbol and the behavior of that is not defined");
throw new ArgumentOutOfRangeException(nameof(pixelAbove),
"Someone is attempting to shade a pixel with a non-blank symbol and the behavior of that is not defined");
#endif
(newForeground, newBackground) = Shade();
return new Pixel(newForeground, newBackground);
Expand Down
6 changes: 4 additions & 2 deletions src/Tests/Consolonia.Core.Tests/PixelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public void BlendColoredBackground()
[Test]
public void BlendShadedBackground()
{
var pixel = new Pixel(new PixelForeground(new SimpleSymbol("x"), Colors.Gray), new PixelBackground(Colors.White));
var pixel = new Pixel(new PixelForeground(new SimpleSymbol("x"), Colors.Gray),
new PixelBackground(Colors.White));
var pixel2 = new Pixel(new PixelBackground(PixelBackgroundMode.Shaded));
Pixel newPixel = pixel.Blend(pixel2);
Assert.True(newPixel.Foreground.Symbol.Text == "x");
Expand All @@ -162,7 +163,8 @@ public void BlendShadedBackground()
[Test]
public void BlendShadedBackground2()
{
var pixel = new Pixel(new PixelForeground(new SimpleSymbol("x"), Colors.Gray), new PixelBackground(Colors.Black));
var pixel = new Pixel(new PixelForeground(new SimpleSymbol("x"), Colors.Gray),
new PixelBackground(Colors.Black));
var pixel2 = new Pixel(new PixelBackground(PixelBackgroundMode.Shaded));
Pixel newPixel = pixel.Blend(pixel2);
Assert.True(newPixel.Foreground.Symbol.Text == "x");
Expand Down

0 comments on commit 0d1c24e

Please sign in to comment.