提交 7778340a 编写于 作者: C CyrusNajmabadi

Make tests work with grouped fixes.

上级 402b3517
......@@ -24,9 +24,7 @@ public partial class GenerateTypeTests : AbstractCSharpDiagnosticProviderBasedUs
}
protected override IList<CodeAction> MassageActions(IList<CodeAction> codeActions)
{
return FlattenActions(codeActions);
}
=> FlattenActions(codeActions);
#region Generate Class
......
......@@ -7,6 +7,8 @@
using Microsoft.CodeAnalysis.CSharp.CodeFixes.Spellcheck;
using Xunit;
using Roslyn.Test.Utilities;
using Microsoft.CodeAnalysis.CodeActions;
using System.Collections.Generic;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.SpellCheck
{
......@@ -17,6 +19,9 @@ public class SpellCheckTests : AbstractCSharpDiagnosticProviderBasedUserDiagnost
return Tuple.Create<DiagnosticAnalyzer, CodeFixProvider>(null, new CSharpSpellCheckCodeFixProvider());
}
protected override IList<CodeAction> MassageActions(IList<CodeAction> actions)
=> FlattenActions(actions);
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsSpellcheck)]
public async Task TestNoSpellcheckForIfOnly2Characters()
{
......
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.CodeFixes
Imports Microsoft.CodeAnalysis.Diagnostics
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions
......@@ -14,6 +15,10 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics.Spellc
Return Tuple.Create(Of DiagnosticAnalyzer, CodeFixProvider)(Nothing, New VisualBasicSpellCheckCodeFixProvider())
End Function
Protected Overrides Function MassageActions(actions As IList(Of CodeAction)) As IList(Of CodeAction)
Return FlattenActions(actions)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsSpellcheck)>
Public Async Function TestNoSpellcheckForIfOnly2Characters() As Task
Dim text = <File>Class Foo
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册