Skip to content

Commit 9a8c999

Browse files
committed
Fix Issue1225 regression test: use DefaultReferences instead of private References
The previous test commit used `References` which is a `private static` member of ConverterTestBase and not accessible from the derived ByRefTests class. Replace with `DefaultReferences.With()` (equivalent references) and also add `ShowCompilationErrors = true` for consistency with other tests. https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX
1 parent beed819 commit 9a8c999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CSharp/ExpressionTests/ByRefTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ Public Sub Test(licenseName As String)
944944
End Sub
945945
End Class";
946946

947-
var options = new TextConversionOptions(References);
947+
var options = new TextConversionOptions(DefaultReferences.With()) { ShowCompilationErrors = true };
948948
var languageConversion = new VBToCSConversion { ConversionOptions = options };
949949
var serviceTree = languageConversion.CreateTree(serviceFileContent);
950950
var callerTree = languageConversion.CreateTree(callerFileContent);

0 commit comments

Comments
 (0)