Skip to content

Commit 522cf0e

Browse files
author
Sourcecodewhen
committed
Fix: test parameters passed to copytestasset
1 parent 4f68719 commit 522cf0e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

test/dotnet-sln.Tests/GivenDotnetSlnRemove.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public void WhenNonExistingSolutionIsPassedItPrintsErrorAndUsage(string solution
305305
public void WhenInvalidSolutionIsPassedItPrintsErrorAndUsage(string solutionCommand)
306306
{
307307
var projectDirectory = _testAssetsManager
308-
.CopyTestAsset("InvalidSolution", identifier: "GivenDotnetSlnRemove")
308+
.CopyTestAsset("InvalidSolution", identifier: $"{solutionCommand}GivenDotnetSlnRemove")
309309
.WithSource()
310310
.Path;
311311

@@ -324,7 +324,7 @@ public void WhenInvalidSolutionIsPassedItPrintsErrorAndUsage(string solutionComm
324324
public void WhenInvalidSolutionIsFoundRemovePrintsErrorAndUsage(string solutionCommand)
325325
{
326326
var projectDirectory = _testAssetsManager
327-
.CopyTestAsset("InvalidSolution")
327+
.CopyTestAsset("InvalidSolution", identifier: $"{solutionCommand}")
328328
.WithSource()
329329
.Path;
330330

@@ -344,7 +344,7 @@ public void WhenInvalidSolutionIsFoundRemovePrintsErrorAndUsage(string solutionC
344344
public void WhenNoProjectIsPassedItPrintsErrorAndUsage(string solutionCommand)
345345
{
346346
var projectDirectory = _testAssetsManager
347-
.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: "GivenDotnetSlnRemove")
347+
.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}GivenDotnetSlnRemove")
348348
.WithSource()
349349
.Path;
350350

@@ -362,7 +362,7 @@ public void WhenNoProjectIsPassedItPrintsErrorAndUsage(string solutionCommand)
362362
public void WhenNoSolutionExistsInTheDirectoryRemovePrintsErrorAndUsage(string solutionCommand)
363363
{
364364
var projectDirectory = _testAssetsManager
365-
.CopyTestAsset("TestAppWithSlnAndCsprojFiles")
365+
.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}")
366366
.WithSource()
367367
.Path;
368368

@@ -381,7 +381,7 @@ public void WhenNoSolutionExistsInTheDirectoryRemovePrintsErrorAndUsage(string s
381381
public void WhenMoreThanOneSolutionExistsInTheDirectoryItPrintsErrorAndUsage(string solutionCommand)
382382
{
383383
var projectDirectory = _testAssetsManager
384-
.CopyTestAsset("TestAppWithMultipleSlnFiles", identifier: "GivenDotnetSlnRemove")
384+
.CopyTestAsset("TestAppWithMultipleSlnFiles", identifier: $"{solutionCommand}GivenDotnetSlnRemove")
385385
.WithSource()
386386
.Path;
387387

@@ -400,7 +400,7 @@ public void WhenMoreThanOneSolutionExistsInTheDirectoryItPrintsErrorAndUsage(str
400400
public void WhenPassedAReferenceNotInSlnItPrintsStatus(string solutionCommand)
401401
{
402402
var projectDirectory = _testAssetsManager
403-
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences")
403+
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}")
404404
.WithSource()
405405
.Path;
406406

@@ -421,7 +421,7 @@ public void WhenPassedAReferenceNotInSlnItPrintsStatus(string solutionCommand)
421421
public void WhenPassedAReferenceItRemovesTheReferenceButNotOtherReferences(string solutionCommand)
422422
{
423423
var projectDirectory = _testAssetsManager
424-
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences")
424+
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}")
425425
.WithSource()
426426
.Path;
427427

@@ -447,7 +447,7 @@ public void WhenPassedAReferenceItRemovesTheReferenceButNotOtherReferences(strin
447447
public void WhenSolutionItemsExistInFolderParentFoldersAreNotRemoved(string solutionCommand)
448448
{
449449
var projectDirectory = _testAssetsManager
450-
.CopyTestAsset("SlnFileWithSolutionItemsInNestedFolders")
450+
.CopyTestAsset("SlnFileWithSolutionItemsInNestedFolders", identifier: $"{solutionCommand}")
451451
.WithSource()
452452
.Path;
453453

@@ -473,7 +473,7 @@ public void WhenSolutionItemsExistInFolderParentFoldersAreNotRemoved(string solu
473473
public void WhenDuplicateReferencesArePresentItRemovesThemAll(string solutionCommand)
474474
{
475475
var projectDirectory = _testAssetsManager
476-
.CopyTestAsset("TestAppWithSlnAndDuplicateProjectReferences")
476+
.CopyTestAsset("TestAppWithSlnAndDuplicateProjectReferences", identifier: $"{solutionCommand}")
477477
.WithSource()
478478
.Path;
479479

@@ -502,7 +502,7 @@ public void WhenDuplicateReferencesArePresentItRemovesThemAll(string solutionCom
502502
public void WhenPassedMultipleReferencesAndOneOfThemDoesNotExistItRemovesTheOneThatExists(string solutionCommand)
503503
{
504504
var projectDirectory = _testAssetsManager
505-
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences")
505+
.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}")
506506
.WithSource()
507507
.Path;
508508

@@ -533,7 +533,7 @@ public void WhenPassedMultipleReferencesAndOneOfThemDoesNotExistItRemovesTheOneT
533533
public void WhenReferenceIsRemovedBuildConfigsAreAlsoRemoved(string solutionCommand)
534534
{
535535
var projectDirectory = _testAssetsManager
536-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
536+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
537537
.WithSource()
538538
.Path;
539539

@@ -557,7 +557,7 @@ public void WhenReferenceIsRemovedBuildConfigsAreAlsoRemoved(string solutionComm
557557
public void WhenDirectoryContainingProjectIsGivenProjectIsRemoved(string solutionCommand)
558558
{
559559
var projectDirectory = _testAssetsManager
560-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
560+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
561561
.WithSource()
562562
.Path;
563563

@@ -580,7 +580,7 @@ public void WhenDirectoryContainingProjectIsGivenProjectIsRemoved(string solutio
580580
public void WhenDirectoryContainsNoProjectsItCancelsWholeOperation(string solutionCommand)
581581
{
582582
var projectDirectory = _testAssetsManager
583-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
583+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
584584
.WithSource()
585585
.Path;
586586
var directoryToRemove = "Empty";
@@ -602,7 +602,7 @@ public void WhenDirectoryContainsNoProjectsItCancelsWholeOperation(string soluti
602602
public void WhenDirectoryContainsMultipleProjectsItCancelsWholeOperation(string solutionCommand)
603603
{
604604
var projectDirectory = _testAssetsManager
605-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
605+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
606606
.WithSource()
607607
.Path;
608608
var directoryToRemove = "Multiple";
@@ -624,7 +624,7 @@ public void WhenDirectoryContainsMultipleProjectsItCancelsWholeOperation(string
624624
public void WhenReferenceIsRemovedSlnBuilds(string solutionCommand)
625625
{
626626
var projectDirectory = _testAssetsManager
627-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
627+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
628628
.WithSource()
629629
.Path;
630630

@@ -665,7 +665,7 @@ public void WhenReferenceIsRemovedSlnBuilds(string solutionCommand)
665665
public void WhenProjectIsRemovedSolutionHasUTF8BOM(string solutionCommand)
666666
{
667667
var projectDirectory = _testAssetsManager
668-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
668+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
669669
.WithSource()
670670
.Path;
671671

@@ -693,7 +693,7 @@ public void WhenProjectIsRemovedSolutionHasUTF8BOM(string solutionCommand)
693693
public void WhenFinalReferenceIsRemovedEmptySectionsAreRemoved(string solutionCommand)
694694
{
695695
var projectDirectory = _testAssetsManager
696-
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove")
696+
.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}")
697697
.WithSource()
698698
.Path;
699699

@@ -719,7 +719,7 @@ public void WhenFinalReferenceIsRemovedEmptySectionsAreRemoved(string solutionCo
719719
public void WhenNestedProjectIsRemovedItsSolutionFoldersAreRemoved(string solutionCommand)
720720
{
721721
var projectDirectory = _testAssetsManager
722-
.CopyTestAsset("TestAppWithSlnAndCsprojInSubDirToRemove")
722+
.CopyTestAsset("TestAppWithSlnAndCsprojInSubDirToRemove", identifier: $"{solutionCommand}")
723723
.WithSource()
724724
.Path;
725725

@@ -741,7 +741,7 @@ public void WhenNestedProjectIsRemovedItsSolutionFoldersAreRemoved(string soluti
741741
public void WhenFinalNestedProjectIsRemovedSolutionFoldersAreRemoved(string solutionCommand)
742742
{
743743
var projectDirectory = _testAssetsManager
744-
.CopyTestAsset("TestAppWithSlnAndLastCsprojInSubDirToRemove")
744+
.CopyTestAsset("TestAppWithSlnAndLastCsprojInSubDirToRemove", identifier: $"{solutionCommand}")
745745
.WithSource()
746746
.Path;
747747

@@ -763,7 +763,7 @@ public void WhenFinalNestedProjectIsRemovedSolutionFoldersAreRemoved(string solu
763763
public void WhenProjectIsRemovedThenDependenciesOnProjectAreAlsoRemoved(string solutionCommand)
764764
{
765765
var projectDirectory = _testAssetsManager
766-
.CopyTestAsset("TestAppWithSlnProjectDependencyToRemove")
766+
.CopyTestAsset("TestAppWithSlnProjectDependencyToRemove", identifier: $"{solutionCommand}")
767767
.WithSource()
768768
.Path;
769769

@@ -785,7 +785,7 @@ public void WhenProjectIsRemovedThenDependenciesOnProjectAreAlsoRemoved(string s
785785
public void WhenSolutionIsPassedAsProjectItPrintsSuggestionAndUsage(string solutionCommand)
786786
{
787787
var projectDirectory = _testAssetsManager
788-
.CopyTestAsset("TestAppWithSlnAndCsprojFiles")
788+
.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}")
789789
.WithSource()
790790
.Path;
791791

0 commit comments

Comments
 (0)