@@ -16,7 +16,7 @@ public sealed class FakeConsole : IAnsiConsole, IDisposable
1616 public RenderPipeline Pipeline { get ; }
1717
1818 public FakeConsoleInput Input { get ; }
19- public string Output => Profile . Out . ToString ( ) ;
19+ public string Output => Profile . Out . Writer . ToString ( ) ;
2020 public IReadOnlyList < string > Lines => Output . TrimEnd ( '\n ' ) . Split ( new char [ ] { '\n ' } ) ;
2121
2222 public FakeConsole (
@@ -28,10 +28,10 @@ public FakeConsole(
2828 ExclusivityMode = new FakeExclusivityMode ( ) ;
2929 Pipeline = new RenderPipeline ( ) ;
3030
31- Profile = new Profile ( new StringWriter ( ) , encoding ?? Encoding . UTF8 ) ;
31+ Profile = new Profile ( new AnsiConsoleOutput ( new StringWriter ( ) ) , encoding ?? Encoding . UTF8 ) ;
3232 Profile . Width = width ;
3333 Profile . Height = height ;
34- Profile . ColorSystem = colorSystem ;
34+ Profile . Capabilities . ColorSystem = colorSystem ;
3535 Profile . Capabilities . Ansi = supportsAnsi ;
3636 Profile . Capabilities . Legacy = legacyConsole ;
3737 Profile . Capabilities . Interactive = interactive ;
@@ -41,7 +41,7 @@ public FakeConsole(
4141
4242 public void Dispose ( )
4343 {
44- Profile . Out . Dispose ( ) ;
44+ Profile . Out . Writer . Dispose ( ) ;
4545 }
4646
4747 public void Clear ( bool home )
@@ -52,7 +52,7 @@ public void Write(IRenderable renderable)
5252 {
5353 foreach ( var segment in renderable . GetSegments ( this ) )
5454 {
55- Profile . Out . Write ( segment . Text ) ;
55+ Profile . Out . Writer . Write ( segment . Text ) ;
5656 }
5757 }
5858
0 commit comments