We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VersionFile.GetVersion
1 parent d7059f7 commit 057f208Copy full SHA for 057f208
src/NerdBank.GitVersioning.Tests/VersionFileTests.cs
@@ -597,6 +597,15 @@ VersionOptions GetOption(string path)
597
}
598
599
600
+ [Fact]
601
+ public void GetVersion_ProducesAbsolutePath()
602
+ {
603
+ this.InitializeSourceControl();
604
+ this.WriteVersionFile();
605
+ Assert.NotNull(this.Context.VersionFile.GetVersion(out string actualDirectory));
606
+ Assert.True(Path.IsPathRooted(actualDirectory));
607
+ }
608
+
609
private void AssertPathHasVersion(string committish, string absolutePath, VersionOptions expected)
610
{
611
var actual = this.GetVersionOptions(absolutePath, committish);
0 commit comments