7
7
using Func . TestFramework . Assertions ;
8
8
using Func . TestFramework . Commands ;
9
9
using Func . TestFramework . Helpers ;
10
- using Xunit . Abstractions ;
11
10
using Xunit ;
11
+ using Xunit . Abstractions ;
12
12
13
13
namespace Func . E2ETests . Commands . FuncStart . TestsWithFixtures
14
14
{
15
- [ Collection ( "Dotnet6InProc " ) ]
15
+ [ Collection ( "DotnetInProc6 " ) ]
16
16
[ Trait ( TestTraits . Group , TestTraits . InProc ) ]
17
- public class Dotnet6InProcTests : IClassFixture < Dotnet6InProcFunctionAppFixture >
17
+ public class DotnetInProc6Tests : IClassFixture < Dotnet6InProcFunctionAppFixture >
18
18
{
19
19
private readonly Dotnet6InProcFunctionAppFixture _fixture ;
20
20
21
- public Dotnet6InProcTests ( Dotnet6InProcFunctionAppFixture fixture , ITestOutputHelper log )
21
+ public DotnetInProc6Tests ( Dotnet6InProcFunctionAppFixture fixture , ITestOutputHelper log )
22
22
{
23
23
_fixture = fixture ;
24
24
_fixture . Log = log ;
25
25
}
26
26
27
27
[ Fact ]
28
28
[ Trait ( TestTraits . Group , TestTraits . RequiresNestedInProcArtifacts ) ]
29
- public async Task Start_InProc_Net6_SuccessfulFunctionExecution_WithSpecifyingRuntime ( )
29
+ public void Start_InProc_Net6_SuccessfulFunctionExecution_WithSpecifyingRuntime ( )
30
30
{
31
31
int port = ProcessHelper . GetAvailablePort ( ) ;
32
32
33
33
// Call func start
34
34
var funcStartCommand = new FuncStartCommand ( _fixture . FuncPath , "Start_InProc_Net6_SuccessfulFunctionExecution_WithSpecifyingRuntime" , _fixture . Log ) ;
35
- string capturedContent = null ;
35
+ string ? capturedContent = null ;
36
36
37
37
funcStartCommand . ProcessStartedHandler = async ( process ) =>
38
38
{
@@ -53,14 +53,14 @@ public async Task Start_InProc_Net6_SuccessfulFunctionExecution_WithSpecifyingRu
53
53
54
54
[ Fact ]
55
55
[ Trait ( TestTraits . Group , TestTraits . RequiresNestedInProcArtifacts ) ]
56
- public async Task Start_InProc_Net6_SuccessfulFunctionExecution_WithoutSpecifyingRuntime ( )
56
+ public void Start_InProc_Net6_SuccessfulFunctionExecution_WithoutSpecifyingRuntime ( )
57
57
{
58
58
int port = ProcessHelper . GetAvailablePort ( ) ;
59
59
60
60
// Call func start
61
61
var funcStartCommand = new FuncStartCommand ( _fixture . FuncPath , "Start_InProc_Net6_SuccessfulFunctionExecution_WithoutSpecifyingRuntime" , _fixture . Log ) ;
62
62
63
- string capturedContent = null ;
63
+ string ? capturedContent = null ;
64
64
65
65
funcStartCommand . ProcessStartedHandler = async ( process ) =>
66
66
{
@@ -80,7 +80,7 @@ public async Task Start_InProc_Net6_SuccessfulFunctionExecution_WithoutSpecifyin
80
80
}
81
81
82
82
[ Fact ]
83
- public async Task Start_InProc_Dotnet6_WithoutSpecifyingRuntime_ExpectedToFail ( )
83
+ public void Start_InProc_Dotnet6_WithoutSpecifyingRuntime_ExpectedToFail ( )
84
84
{
85
85
int port = ProcessHelper . GetAvailablePort ( ) ;
86
86
@@ -96,7 +96,7 @@ public async Task Start_InProc_Dotnet6_WithoutSpecifyingRuntime_ExpectedToFail()
96
96
}
97
97
98
98
[ Fact ]
99
- public async Task Start_InProc_Dotnet6_WithSpecifyingRuntime_ExpectedToFail ( )
99
+ public void Start_InProc_Dotnet6_WithSpecifyingRuntime_ExpectedToFail ( )
100
100
{
101
101
int port = ProcessHelper . GetAvailablePort ( ) ;
102
102
@@ -112,7 +112,7 @@ public async Task Start_InProc_Dotnet6_WithSpecifyingRuntime_ExpectedToFail()
112
112
}
113
113
114
114
[ Fact ]
115
- public async Task DontStart_InProc8_SpecifiedRuntime_ForDotnet6InProc ( )
115
+ public void DontStart_InProc8_SpecifiedRuntime_ForDotnet6InProc ( )
116
116
{
117
117
int port = ProcessHelper . GetAvailablePort ( ) ;
118
118
@@ -128,7 +128,7 @@ public async Task DontStart_InProc8_SpecifiedRuntime_ForDotnet6InProc()
128
128
}
129
129
130
130
[ Fact ]
131
- public async Task DontStart_DefaultRuntime_SpecifiedRuntime_ForDotnet6InProc ( )
131
+ public void DontStart_DefaultRuntime_SpecifiedRuntime_ForDotnet6InProc ( )
132
132
{
133
133
int port = ProcessHelper . GetAvailablePort ( ) ;
134
134
@@ -145,7 +145,7 @@ public async Task DontStart_DefaultRuntime_SpecifiedRuntime_ForDotnet6InProc()
145
145
146
146
[ Fact ]
147
147
[ Trait ( TestTraits . Group , TestTraits . RequiresNestedInProcArtifacts ) ]
148
- public async Task Start_InProc_InvalidHostJson_FailsWithExpectedError ( )
148
+ public void Start_InProc_InvalidHostJson_FailsWithExpectedError ( )
149
149
{
150
150
int port = ProcessHelper . GetAvailablePort ( ) ;
151
151
@@ -177,7 +177,7 @@ public async Task Start_InProc_InvalidHostJson_FailsWithExpectedError()
177
177
178
178
[ Fact ]
179
179
[ Trait ( TestTraits . Group , TestTraits . RequiresNestedInProcArtifacts ) ]
180
- public async Task Start_InProc_MissingHostJson_FailsWithExpectedError ( )
180
+ public void Start_InProc_MissingHostJson_FailsWithExpectedError ( )
181
181
{
182
182
int port = ProcessHelper . GetAvailablePort ( ) ;
183
183
@@ -202,4 +202,4 @@ public async Task Start_InProc_MissingHostJson_FailsWithExpectedError()
202
202
Directory . Delete ( tempDir , true ) ;
203
203
}
204
204
}
205
- }
205
+ }
0 commit comments