File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
test/Nerdbank.GitVersioning.Tests Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -815,11 +815,8 @@ public void Prerelease_ThrowsWhen_VersionAlreadyHasPrerelease()
815815 string childPath = Path . Combine ( this . RepoPath , "child" ) ;
816816 Directory . CreateDirectory ( childPath ) ;
817817 string versionJsonPath = Path . Combine ( childPath , "version.json" ) ;
818- File . WriteAllText ( versionJsonPath , @"{
819- ""inherit"": true,
820- ""version"": ""1.2-alpha"",
821- ""prerelease"": ""beta""
822- }" ) ;
818+ string invalidJson = "{ \" inherit\" : true, \" version\" : \" 1.2-alpha\" , \" prerelease\" : \" beta\" }" ;
819+ File . WriteAllText ( versionJsonPath , invalidJson ) ;
823820
824821 // Act & Assert: Attempting to get the version should throw
825822 using GitContext context = this . CreateGitContext ( childPath ) ;
You can’t perform that action at this time.
0 commit comments