1010using Microsoft . Extensions . DependencyInjection ;
1111using Microsoft . Extensions . Logging ;
1212
13- [ assembly: CaptureConsole , AssemblyFixture ( typeof ( Elastic . Assembler . IntegrationTests . AssembleFixture ) ) ]
13+ [ assembly: CaptureConsole , AssemblyFixture ( typeof ( Elastic . Assembler . IntegrationTests . DocumentationFixture ) ) ]
1414
1515namespace Elastic . Assembler . IntegrationTests ;
1616
1717
18- public class AssembleFixture : IAsyncLifetime
18+ public class DocumentationFixture : IAsyncLifetime
1919{
2020 public DistributedApplication DistributedApplication { get ; private set ; } = null ! ;
2121
@@ -50,10 +50,10 @@ public async ValueTask DisposeAsync()
5050}
5151
5252
53- public class DatabaseTestClass1 ( AssembleFixture fixture , ITestOutputHelper output ) : IAsyncLifetime
53+ public class ServeStaticTests ( DocumentationFixture fixture , ITestOutputHelper output ) : IAsyncLifetime
5454{
5555 [ Fact ]
56- public async Task X ( )
56+ public async Task AssertRequestToRootReturnsData ( )
5757 {
5858 _ = await fixture . DistributedApplication . ResourceNotifications
5959 . WaitForResourceHealthyAsync ( "DocsBuilderServeStatic" , cancellationToken : TestContext . Current . CancellationToken ) ;
@@ -67,8 +67,8 @@ public async Task X()
6767 public ValueTask DisposeAsync ( )
6868 {
6969 GC . SuppressFinalize ( this ) ;
70- // if (TestContext.Current.TestState?.Result is TestResult.Passed)
71- // return default;
70+ if ( TestContext . Current . TestState ? . Result is TestResult . Passed )
71+ return default ;
7272 foreach ( var resource in fixture . InMemoryLogger . RecordedLogs )
7373 output . WriteLine ( resource . Message ) ;
7474 return default ;
0 commit comments