File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/NerdBank.GitVersioning.Tests Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,22 @@ public async Task GetBuildVersion_Without_Git()
9898 Assert . Equal ( "3.4.0" , buildResult . AssemblyInformationalVersion ) ;
9999 }
100100
101+ [ Fact ]
102+ public async Task GetBuildVersion_Without_Git_HighPrecisionAssemblyVersion ( )
103+ {
104+ this . WriteVersionFile ( new VersionOptions
105+ {
106+ Version = SemanticVersion . Parse ( "3.4" ) ,
107+ AssemblyVersion = new VersionOptions . AssemblyVersionOptions
108+ {
109+ Precision = VersionOptions . VersionPrecision . Revision ,
110+ } ,
111+ } ) ;
112+ var buildResult = await this . BuildAsync ( ) ;
113+ Assert . Equal ( "3.4" , buildResult . BuildVersion ) ;
114+ Assert . Equal ( "3.4.0" , buildResult . AssemblyInformationalVersion ) ;
115+ }
116+
101117 [ Fact ]
102118 public async Task GetBuildVersion_OutsideGit_PointingToGit ( )
103119 {
You can’t perform that action at this time.
0 commit comments