mirror of
				https://github.com/Tyrrrz/CliFx.git
				synced 2025-10-25 15:19:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			503 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			503 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using CliFx.Infrastructure;
 | |
| using CliFx.Tests.Utils.Extensions;
 | |
| using Xunit.Abstractions;
 | |
| 
 | |
| namespace CliFx.Tests;
 | |
| 
 | |
| public abstract class SpecsBase : IDisposable
 | |
| {
 | |
|     public ITestOutputHelper TestOutput { get; }
 | |
| 
 | |
|     public FakeInMemoryConsole FakeConsole { get; } = new();
 | |
| 
 | |
|     protected SpecsBase(ITestOutputHelper testOutput) =>
 | |
|         TestOutput = testOutput;
 | |
| 
 | |
|     public void Dispose()
 | |
|     {
 | |
|         FakeConsole.DumpToTestOutput(TestOutput);
 | |
|         FakeConsole.Dispose();
 | |
|     }
 | |
| } |