mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 02:25:28 +08:00 
			
		
		
		
	Merge pull request #1303 from nils-a/feature/GH-684
This commit is contained in:
		@@ -0,0 +1,3 @@
 | 
			
		||||
[38;5;9m████████████████████████[0m[38;5;12m█████████████████[0m[38;5;2m█████████████[0m[38;5;11m███[0m[38;5;119m███[0m
 | 
			
		||||
[38;5;9m■[0m SCSS [38;5;9m37[0m    [38;5;12m■[0m HTML [38;5;9m28.3[0m     [38;5;2m■[0m C# [38;5;9m22.6[0m    [38;5;11m■[0m JavaScript [38;5;9m6[0m    
 | 
			
		||||
[38;5;119m■[0m Ruby [38;5;9m6[0m     [38;5;14m■[0m Shell [38;5;9m0.1[0m                                    
 | 
			
		||||
@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user