From a96973e5c3dd30b520b812069496032513838147 Mon Sep 17 00:00:00 2001 From: Chris Donnelly Date: Wed, 30 Jul 2025 12:47:02 -0500 Subject: [PATCH] fix: ParseSpanDelegatesFile test The test was broken on commit 34efb3d0539c867fd0735d0dcca3b712d360652a, which moved the file to the ExceptionFactory subdirectory but did not update the test. Test passes again. --- .../ParseCSharpFilesWithRoslynTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Light.GuardClauses.SourceCodeTransformation.Tests/ParseCSharpFilesWithRoslynTests.cs b/Code/Light.GuardClauses.SourceCodeTransformation.Tests/ParseCSharpFilesWithRoslynTests.cs index cb38711..00f0f8f 100644 --- a/Code/Light.GuardClauses.SourceCodeTransformation.Tests/ParseCSharpFilesWithRoslynTests.cs +++ b/Code/Light.GuardClauses.SourceCodeTransformation.Tests/ParseCSharpFilesWithRoslynTests.cs @@ -29,7 +29,7 @@ public static void ParseExpressionExtensionsFile() [Fact] public static void ParseSpanDelegatesFile() { - var fileInfo = GetLightGuardClausesFile("SpanDelegates.cs"); + var fileInfo = GetLightGuardClausesFile(@"ExceptionFactory\SpanDelegates.cs"); var syntaxTree = CSharpSyntaxTree.ParseText(File.ReadAllText(fileInfo.FullName), new CSharpParseOptions(LanguageVersion.CSharp7_3, preprocessorSymbols: new[] { "NETSTANDARD2_0" })); var root = (CompilationUnitSyntax) syntaxTree.GetRoot();