Skip to content

Commit fe85a41

Browse files
Set root namespace when overriding here
1 parent dd3315d commit fe85a41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/TestRunners/ConverterTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static string AddSurroundingMethodBlock(string expectedVisualBasicCode,
9898
public async Task TestConversionVisualBasicToCSharp(string visualBasicCode, string expectedCsharpCode, bool expectSurroundingBlock = false, bool missingSemanticInfo = false, bool hasLineCommentConversionIssue = false)
9999
{
100100
if (expectSurroundingBlock) expectedCsharpCode = SurroundWithBlock(expectedCsharpCode);
101-
var conversionOptions = new TextConversionOptions(DefaultReferences.NetStandard2) { ShowCompilationErrors = !expectSurroundingBlock };
101+
var conversionOptions = new TextConversionOptions(DefaultReferences.NetStandard2) { RootNamespaceOverride = _rootNamespace, ShowCompilationErrors = !expectSurroundingBlock };
102102
await AssertConvertedCodeResultEquals<VBToCSConversion>(visualBasicCode, expectedCsharpCode, conversionOptions);
103103

104104
if (_testVbtoCsCommentsByDefault && !hasLineCommentConversionIssue) {

0 commit comments

Comments
 (0)