@@ -4,8 +4,8 @@ namespace ThreadPilot.Core.Tests
44
55 public sealed partial class PackagingMetadataTests
66 {
7- private const string HotfixVersion = "1.3.1 " ;
8- private const string HotfixAssemblyVersion = "1.3.1 .0" ;
7+ private const string ReleaseVersion = "1.4.0 " ;
8+ private const string ReleaseAssemblyVersion = "1.4.0 .0" ;
99
1010 [ Fact ]
1111 public void InnoInstallers_UseStableDisplayNameAndSeparateVersionMetadata ( )
@@ -57,24 +57,24 @@ public void PrimaryInstaller_CleansOnlyRecognizedLegacyBetaUninstallRegistryEntr
5757 }
5858
5959 [ Fact ]
60- public void VersionMetadata_IsBumpedToHotfixVersion ( )
60+ public void VersionMetadata_IsBumpedToReleaseVersion ( )
6161 {
6262 var root = FindRepositoryRoot ( ) ;
6363
64- AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<Version>{ HotfixVersion } </Version>") ;
65- AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<AssemblyVersion>{ HotfixAssemblyVersion } </AssemblyVersion>") ;
66- AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<FileVersion>{ HotfixAssemblyVersion } </FileVersion>") ;
67- AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<InformationalVersion>{ HotfixVersion } </InformationalVersion>") ;
68- AssertFileContains ( Path . Combine ( root , "app.manifest" ) , $ "version=\" { HotfixAssemblyVersion } \" ") ;
69- AssertFileContains ( Path . Combine ( root , "Installer" , "ThreadPilot.wxs" ) , $ "Version=\" { HotfixAssemblyVersion } \" ") ;
70- AssertFileContains ( Path . Combine ( root , "chocolatey" , "threadpilot.nuspec" ) , $ "<version>{ HotfixVersion } </version>") ;
71- AssertFileContains ( Path . Combine ( root , "chocolatey" , "threadpilot.nuspec" ) , $ "releases/tag/v{ HotfixVersion } ") ;
72- AssertFileContains ( Path . Combine ( root , "sonar-project.properties" ) , $ "sonar.projectVersion={ HotfixVersion } ") ;
73- AssertFileContains ( Path . Combine ( root , "build" , "build-release.ps1" ) , $ "[string]$Version = \" { HotfixVersion } \" ") ;
74- AssertFileContains ( Path . Combine ( root , "build" , "build-installer.ps1" ) , $ "[string]$Version = \" { HotfixVersion } \" ") ;
75- AssertFileContains ( Path . Combine ( root , "build" , "package-release-zips.ps1" ) , $ "[string]$Version = \" { HotfixVersion } \" ") ;
76- Assert . True ( File . Exists ( Path . Combine ( root , "docs" , "releases" , $ "v{ HotfixVersion } .md") ) ) ;
77- AssertFileContains ( Path . Combine ( root , "docs" , "release" , "RELEASE_NOTES.md" ) , $ "v{ HotfixVersion } ") ;
64+ AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<Version>{ ReleaseVersion } </Version>") ;
65+ AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<AssemblyVersion>{ ReleaseAssemblyVersion } </AssemblyVersion>") ;
66+ AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<FileVersion>{ ReleaseAssemblyVersion } </FileVersion>") ;
67+ AssertFileContains ( Path . Combine ( root , "ThreadPilot.csproj" ) , $ "<InformationalVersion>{ ReleaseVersion } </InformationalVersion>") ;
68+ AssertFileContains ( Path . Combine ( root , "app.manifest" ) , $ "version=\" { ReleaseAssemblyVersion } \" ") ;
69+ AssertFileContains ( Path . Combine ( root , "Installer" , "ThreadPilot.wxs" ) , $ "Version=\" { ReleaseAssemblyVersion } \" ") ;
70+ AssertFileContains ( Path . Combine ( root , "chocolatey" , "threadpilot.nuspec" ) , $ "<version>{ ReleaseVersion } </version>") ;
71+ AssertFileContains ( Path . Combine ( root , "chocolatey" , "threadpilot.nuspec" ) , $ "releases/tag/v{ ReleaseVersion } ") ;
72+ AssertFileContains ( Path . Combine ( root , "sonar-project.properties" ) , $ "sonar.projectVersion={ ReleaseVersion } ") ;
73+ AssertFileContains ( Path . Combine ( root , "build" , "build-release.ps1" ) , $ "[string]$Version = \" { ReleaseVersion } \" ") ;
74+ AssertFileContains ( Path . Combine ( root , "build" , "build-installer.ps1" ) , $ "[string]$Version = \" { ReleaseVersion } \" ") ;
75+ AssertFileContains ( Path . Combine ( root , "build" , "package-release-zips.ps1" ) , $ "[string]$Version = \" { ReleaseVersion } \" ") ;
76+ Assert . True ( File . Exists ( Path . Combine ( root , "docs" , "releases" , $ "v{ ReleaseVersion } .md") ) ) ;
77+ AssertFileContains ( Path . Combine ( root , "docs" , "release" , "RELEASE_NOTES.md" ) , $ "v{ ReleaseVersion } ") ;
7878 }
7979
8080 private static void AssertFileContains ( string path , string expected )
@@ -100,7 +100,7 @@ private static string FindRepositoryRoot()
100100 throw new InvalidOperationException ( "Repository root could not be located." ) ;
101101 }
102102
103- [ GeneratedRegex ( "#define MyAppVersion \" 1\\ .3 \\ .1 \" " , RegexOptions . CultureInvariant ) ]
103+ [ GeneratedRegex ( "#define MyAppVersion \" 1\\ .4 \\ .0 \" " , RegexOptions . CultureInvariant ) ]
104104 private static partial Regex MyAppVersionRegex ( ) ;
105105 }
106106}
0 commit comments