@@ -188,7 +188,7 @@ public async Task LifecycleAttributesTaskThreading_WhenMainIsNotSTA_RunsettingsA
188
188
return ;
189
189
}
190
190
191
- var testHost = TestHost . LocateFrom ( AssetFixture . LifecycleAttributesTaskProjectPath , TestAssetFixture . LifecycleWithParallelAttributesTaskProjectName , tfm ) ;
191
+ var testHost = TestHost . LocateFrom ( AssetFixture . LifecycleWithParallelAttributesTaskProjectNamePath , TestAssetFixture . LifecycleWithParallelAttributesTaskProjectName , tfm ) ;
192
192
string runSettingsFilePath = Path . Combine ( testHost . DirectoryName , "sta.runsettings" ) ;
193
193
TestHostResult testHostResult = await testHost . ExecuteAsync ( $ "--settings { runSettingsFilePath } ", environmentVariables : new ( )
194
194
{
@@ -225,7 +225,7 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
225
225
public const string STAThreadProjectName = "STATestThreading" ;
226
226
public const string LifecycleAttributesVoidProjectName = "LifecycleAttributesVoid" ;
227
227
public const string LifecycleAttributesTaskProjectName = "LifecycleAttributesTask" ;
228
- public const string LifecycleWithParallelAttributesTaskProjectName = "LifecycleAttributesTask " ;
228
+ public const string LifecycleWithParallelAttributesTaskProjectName = "LifecycleWithParallelAttributesTask " ;
229
229
public const string LifecycleAttributesValueTaskProjectName = "LifecycleAttributesValueTask" ;
230
230
231
231
public string ProjectPath => GetAssetPath ( ProjectName ) ;
@@ -264,12 +264,14 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
264
264
yield return ( LifecycleAttributesTaskProjectName , LifecycleAttributesTaskProjectName ,
265
265
LifecycleAttributesTaskSource
266
266
. PatchTargetFrameworks ( TargetFrameworks . All )
267
+ . PatchCodeWithReplace ( "$ProjectName$" , LifecycleAttributesTaskProjectName )
267
268
. PatchCodeWithReplace ( "$ParallelAttribute$" , string . Empty )
268
269
. PatchCodeWithReplace ( "$MSTestVersion$" , MSTestVersion ) ) ;
269
270
270
271
yield return ( LifecycleWithParallelAttributesTaskProjectName , LifecycleWithParallelAttributesTaskProjectName ,
271
272
LifecycleAttributesTaskSource
272
273
. PatchTargetFrameworks ( TargetFrameworks . All )
274
+ . PatchCodeWithReplace ( "$ProjectName$" , LifecycleWithParallelAttributesTaskProjectName )
273
275
. PatchCodeWithReplace ( "$ParallelAttribute$" , "[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.MethodLevel)]" )
274
276
. PatchCodeWithReplace ( "$MSTestVersion$" , MSTestVersion ) ) ;
275
277
@@ -529,7 +531,7 @@ private static void AssertCorrectThreadApartmentState()
529
531
</RunConfiguration>
530
532
</RunSettings>
531
533
532
- #file LifecycleAttributesTask .csproj
534
+ #file $ProjectName$ .csproj
533
535
<Project Sdk="Microsoft.NET.Sdk">
534
536
535
537
<PropertyGroup>
0 commit comments