Skip to content

Commit 2c8cae0

Browse files
CopilotAArnott
andcommitted
Fix StyleCop warning in test
Co-authored-by: AArnott <[email protected]>
1 parent c37d84d commit 2c8cae0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/Nerdbank.GitVersioning.Tests/VersionFileTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)