File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed
src/DotNet.Testcontainers.Tests/Unit Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ public static class TestcontainersContainerTest
1717
1818 public class With
1919 {
20+ [ Fact ]
21+ public void IsLinuxEngineEnabled ( )
22+ {
23+ Assert . False ( DockerHostConfiguration . IsWindowsEngineEnabled ) ;
24+ }
25+
2026 [ Fact ]
2127 public async Task Finalizer ( )
2228 {
Original file line number Diff line number Diff line change @@ -7,24 +7,27 @@ namespace DotNet.Testcontainers.Tests.Unit.Windows
77
88 public class TestcontainersContainerTest
99 {
10- [ IgnoreOnLinuxEngine ]
11- public void IsWindowsEngineEnabled ( )
10+ public class With
1211 {
13- Assert . True ( DockerHostConfiguration . IsWindowsEngineEnabled ) ;
14- }
15-
16- [ IgnoreOnLinuxEngine ]
17- public async Task Disposable ( )
18- {
19- // Given
20- // When
21- var testcontainersBuilder = new TestcontainersBuilder < TestcontainersContainer > ( )
22- . WithImage ( "mcr.microsoft.com/windows/nanoserver:1809" ) ;
12+ [ IgnoreOnLinuxEngine ]
13+ public void IsWindowsEngineEnabled ( )
14+ {
15+ Assert . True ( DockerHostConfiguration . IsWindowsEngineEnabled ) ;
16+ }
2317
24- // Then
25- using ( var testcontainer = testcontainersBuilder . Build ( ) )
18+ [ IgnoreOnLinuxEngine ]
19+ public async Task Disposable ( )
2620 {
27- await testcontainer . StartAsync ( ) ;
21+ // Given
22+ // When
23+ var testcontainersBuilder = new TestcontainersBuilder < TestcontainersContainer > ( )
24+ . WithImage ( "mcr.microsoft.com/windows/nanoserver:1809" ) ;
25+
26+ // Then
27+ using ( var testcontainer = testcontainersBuilder . Build ( ) )
28+ {
29+ await testcontainer . StartAsync ( ) ;
30+ }
2831 }
2932 }
3033 }
You can’t perform that action at this time.
0 commit comments