1+ using GitVersion . Configuration ;
12using GitVersion . Core . Tests . Helpers ;
23using GitVersion . Extensions ;
34using GitVersion . Helpers ;
@@ -40,7 +41,7 @@ public void ShouldCreateAssemblyInfoFileWhenNotExistsAndEnsureAssemblyInfo(strin
4041 var workingDir = Path . GetTempPath ( ) ;
4142 var assemblyInfoFile = "VersionAssemblyInfo." + fileExtension ;
4243 var fullPath = PathHelper . Combine ( workingDir , assemblyInfoFile ) ;
43- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
44+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
4445
4546 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
4647 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , true , assemblyInfoFile ) ) ;
@@ -56,7 +57,7 @@ public void ShouldCreateAssemblyInfoFileAtPathWhenNotExistsAndEnsureAssemblyInfo
5657 var workingDir = Path . GetTempPath ( ) ;
5758 var assemblyInfoFile = PathHelper . Combine ( "src" , "Project" , "Properties" , $ "VersionAssemblyInfo.{ fileExtension } ") ;
5859 var fullPath = PathHelper . Combine ( workingDir , assemblyInfoFile ) ;
59- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
60+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
6061
6162 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
6263 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , true , assemblyInfoFile ) ) ;
@@ -75,7 +76,7 @@ public void ShouldCreateAssemblyInfoFilesAtPathWhenNotExistsAndEnsureAssemblyInf
7576 "AssemblyInfo." + fileExtension ,
7677 PathHelper . Combine ( "src" , "Project" , "Properties" , "VersionAssemblyInfo." + fileExtension )
7778 } ;
78- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
79+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
7980
8081 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
8182 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , true , assemblyInfoFiles . ToArray ( ) ) ) ;
@@ -95,7 +96,7 @@ public void ShouldNotCreateAssemblyInfoFileWhenNotExistsAndNotEnsureAssemblyInfo
9596 var workingDir = Path . GetTempPath ( ) ;
9697 var assemblyInfoFile = "VersionAssemblyInfo." + fileExtension ;
9798 var fullPath = PathHelper . Combine ( workingDir , assemblyInfoFile ) ;
98- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
99+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
99100
100101 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
101102 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , false , assemblyInfoFile ) ) ;
@@ -110,7 +111,7 @@ public void ShouldNotCreateAssemblyInfoFileForUnknownSourceCodeAndEnsureAssembly
110111 var workingDir = Path . GetTempPath ( ) ;
111112 const string assemblyInfoFile = "VersionAssemblyInfo.js" ;
112113 var fullPath = PathHelper . Combine ( workingDir , assemblyInfoFile ) ;
113- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
114+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
114115
115116 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
116117 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , true , assemblyInfoFile ) ) ;
@@ -124,7 +125,7 @@ public void ShouldStartSearchFromWorkingDirectory()
124125 this . fileSystem = Substitute . For < IFileSystem > ( ) ;
125126 var workingDir = Path . GetTempPath ( ) ;
126127 var assemblyInfoFiles = Array . Empty < string > ( ) ;
127- var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , "v?" ) , new TestEffectiveConfiguration ( ) , false ) ;
128+ var variables = this . variableProvider . GetVariablesFor ( SemanticVersion . Parse ( "1.0.0" , GitVersionConfiguration . DefaultTagPrefix ) , new TestEffectiveConfiguration ( ) , false ) ;
128129
129130 using var assemblyInfoFileUpdater = new AssemblyInfoFileUpdater ( this . log , this . fileSystem ) ;
130131 assemblyInfoFileUpdater . Execute ( variables , new AssemblyInfoContext ( workingDir , false , assemblyInfoFiles . ToArray ( ) ) ) ;
0 commit comments