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.
1 parent e3447b6 commit 7818fd5Copy full SHA for 7818fd5
src/GraphQL.Authorization.ApiTests/BomTests.cs
@@ -10,7 +10,8 @@ public void Files_Should_Not_Use_BOM()
10
{
11
string GetPath([CallerFilePath] string path = "") => path; // <GIT_ROOT>\src\GraphQL.ApiTests\BomTests.cs
12
13
- var gitRoot = new DirectoryInfo(GetPath()).Parent!.Parent!.Parent!;
+ var callerFilePath = GetPath();
14
+ var gitRoot = new FileInfo(callerFilePath).Directory!.Parent!.Parent!;
15
// Protection from situations when this test is copied to another repo or the folder structure changed, etc.
16
if (!File.Exists(Path.Combine(gitRoot.FullName, "src", "GraphQL.Authorization.sln")))
17
throw new InvalidOperationException("Unable to find repository root");
0 commit comments