提交 62535b03 编写于 作者: C Cyrus Najmabadi

Add test.

上级 4ff1b74d
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Editor.CSharp.Wrapping;
......@@ -111,6 +107,23 @@ public async Task TestWrapAndUnwrap()
void Bar() {
the.quick.brown[1, 2, 3].fox.jumped[1][2][3];
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsWrapping)]
public async Task TestChunkMustHaveDottedSection()
{
await TestAllWrappingCasesAsync(
@"class C {
void Bar() {
[||]the().quick.brown[1, 2, 3].fox.jumped[1][2][3];
}
}",
@"class C {
void Bar() {
the().quick.brown[1, 2, 3]
.fox.jumped[1][2][3];
}
}");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册