@@ -49,11 +49,11 @@ type testDescriptor struct {
49
49
func TestNugetResolve (t * testing.T ) {
50
50
uniqueNugetTests := []testDescriptor {
51
51
{"nugetargswithspaces" , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "-PackagesDirectory" , "./packages dir with spaces" }, []string {"packagesconfig" }, []int {6 }},
52
- {"packagesconfigwithoutmodulechnage " , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" }, []string {"packagesconfig" }, []int {6 }},
53
- {"packagesconfigwithmodulechnage " , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
52
+ {"packagesconfigwithoutmodulechange " , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" }, []string {"packagesconfig" }, []int {6 }},
53
+ {"packagesconfigwithmodulechange " , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
54
54
{"packagesconfigwithconfigpath" , "packagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "./packages.config" , "-SolutionDirectory" , "." }, []string {"packagesconfig" }, []int {6 }},
55
- {"multipackagesconfigwithoutmodulechnage " , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" }, []string {"proj1" , "proj2" , "proj3" }, []int {4 , 3 , 2 }},
56
- {"multipackagesconfigwithmodulechnage " , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {8 }},
55
+ {"multipackagesconfigwithoutmodulechange " , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" }, []string {"proj1" , "proj2" , "proj3" }, []int {4 , 3 , 2 }},
56
+ {"multipackagesconfigwithmodulechange " , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {8 }},
57
57
{"multipackagesconfigwithslnPath" , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "./multipackagesconfig.sln" }, []string {"proj1" , "proj2" , "proj3" }, []int {4 , 3 , 2 }},
58
58
{"multipackagesconfigsingleprojectdir" , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "./proj2/" , "-SolutionDirectory" , "." }, []string {"proj2" }, []int {3 }},
59
59
{"multipackagesconfigsingleprojectconfig" , "multipackagesconfig" , []string {dotnetUtils .Nuget .String (), "restore" , "./proj1/packages.config" , "-SolutionDirectory" , "." }, []string {"proj1" }, []int {4 }},
@@ -72,10 +72,10 @@ func TestDotnetResolve(t *testing.T) {
72
72
func testNativeNugetDotnetResolve (t * testing.T , uniqueTests []testDescriptor , buildName string , projectType project.ProjectType ) {
73
73
initNugetTest (t )
74
74
testDescriptors := append (slices .Clone (uniqueTests ), []testDescriptor {
75
- {"referencewithoutmodulechnage " , "reference" , []string {projectType .String (), "restore" }, []string {"reference" }, []int {6 }},
76
- {"referencewithmodulechnage " , "reference" , []string {projectType .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
77
- {"multireferencewithoutmodulechnage " , "multireference" , []string {projectType .String (), "restore" }, []string {"proj1" , "proj2" }, []int {5 , 3 }},
78
- {"multireferencewithmodulechnage " , "multireference" , []string {projectType .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
75
+ {"referencewithoutmodulechange " , "reference" , []string {projectType .String (), "restore" }, []string {"reference" }, []int {6 }},
76
+ {"referencewithmodulechange " , "reference" , []string {projectType .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
77
+ {"multireferencewithoutmodulechange " , "multireference" , []string {projectType .String (), "restore" }, []string {"proj1" , "proj2" }, []int {5 , 3 }},
78
+ {"multireferencewithmodulechange " , "multireference" , []string {projectType .String (), "restore" , "--module=" + ModuleNameJFrogTest }, []string {ModuleNameJFrogTest }, []int {6 }},
79
79
{"multireferencewithslnpath" , "multireference" , []string {projectType .String (), "restore" , "src/multireference.sln" }, []string {"proj1" , "proj2" }, []int {5 , 3 }},
80
80
{"multireferencewithslndir" , "multireference" , []string {projectType .String (), "restore" , "src/" }, []string {"proj1" , "proj2" }, []int {5 , 3 }},
81
81
{"multireferencesingleprojectcsproj" , "multireference" , []string {projectType .String (), "restore" , "src/multireference.proj2/proj2.csproj" }, []string {"proj2" }, []int {3 }},
0 commit comments