Merge pull request #1303 from nils-a/feature/GH-684

This commit is contained in:
Patrik Svensson
2023-09-16 19:37:00 +02:00
committed by GitHub
6 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,3 @@
████████████████████████████████████████████████████████████
■ SCSS 37 ■ HTML 28.3 ■ C# 22.6 ■ JavaScript 6
■ Ruby 6 ■ Shell 0.1

View File

@ -127,6 +127,21 @@ public sealed class BreakdownChartTests
await Verifier.Verify(console.Output);
}
[Fact]
[Expectation("ValueColor")]
public async Task Should_Render_Correct_ValueColor()
{
// Given
var console = new TestConsole().EmitAnsiSequences();
var chart = Fixture.GetChart().Width(60).WithValueColor(Color.Red);
// When
console.Write(chart);
// Then
await Verifier.Verify(console.Output);
}
public static class Fixture
{
public static BreakdownChart GetChart()