提交 cf138b3d 编写于 作者: G Gen Lu

Fix test

上级 2e06c4ea
......@@ -558,13 +558,15 @@ public async Task TestSortingDefaultTypeMemberAccessibility1()
[Fact, Trait(Traits.Feature, Traits.Features.CodeGenerationSortDeclarations)]
public async Task TestDefaultTypeMemberAccessibility2()
{
var codeGenOptionNoBody = new CodeGenerationOptions(generateMethodBodies: false);
var generationSource = "public class [|C|] { private void B(){} public void C(){} }";
var initial = "public interface [|I|] { void A(); }";
var expected = @"public interface I { void A();
void B();
void C();
}";
await TestGenerateFromSourceSymbolAsync(generationSource, initial, expected, onlyGenerateMembers: true);
await TestGenerateFromSourceSymbolAsync(generationSource, initial, expected, onlyGenerateMembers: true, codeGenerationOptions: codeGenOptionNoBody);
initial = "Public Interface [|I|] \n Sub A() \n End Interface";
expected = @"Public Interface I
......@@ -572,7 +574,7 @@ Sub A()
Sub B()
Sub C()
End Interface";
await TestGenerateFromSourceSymbolAsync(generationSource, initial, expected, onlyGenerateMembers: true);
await TestGenerateFromSourceSymbolAsync(generationSource, initial, expected, onlyGenerateMembers: true, codeGenerationOptions: codeGenOptionNoBody);
initial = "Public Class [|C|] \n Sub A() \n End Sub \n End Class";
expected = @"Public Class C
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册