File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
test/Microsoft.NET.Build.Tests Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -483,9 +483,10 @@ public void MTPNonSelfContainedExecutableCannotBeReferencedBySelfContained(bool
483
483
}
484
484
485
485
[ RequiresMSBuildVersionTheory ( "17.0.0.32901" ) ]
486
- [ InlineData ( "xunit" ) ]
487
- [ InlineData ( "mstest" ) ]
488
- public void ExeProjectCanReferenceTestProject ( string testTemplateName )
486
+ [ CombinatorialData ]
487
+ public void ExeProjectCanReferenceTestProject (
488
+ [ CombinatorialValues ( "xunit" , "mstest" ) ] string testTemplateName ,
489
+ bool setSelfContainedProperty )
489
490
{
490
491
var testConsoleProject = new TestProject ( "ConsoleApp" )
491
492
{
@@ -494,6 +495,11 @@ public void ExeProjectCanReferenceTestProject(string testTemplateName)
494
495
RuntimeIdentifier = EnvironmentInfo . GetCompatibleRid ( )
495
496
} ;
496
497
498
+ if ( setSelfContainedProperty )
499
+ {
500
+ testConsoleProject . SelfContained = "true" ;
501
+ }
502
+
497
503
var testAsset = _testAssetsManager . CreateTestProject ( testConsoleProject , identifier : testTemplateName ) ;
498
504
499
505
var testProjectDirectory = Path . Combine ( testAsset . TestRoot , "TestProject" ) ;
You can’t perform that action at this time.
0 commit comments