8 references to WrapInSwitchLabel
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (8)
175
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression}", "when"),
WrapInSwitchLabel
($"{expected}"));
176
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression}", "case"),
WrapInSwitchLabel
($"{expected}"));
181
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression} && B1 && B2", "when"),
WrapInSwitchLabel
($"{expected} when B1 && B2"));
182
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression} && B1 && B2", "case"),
WrapInSwitchLabel
($"{expected} when B1 && B2"));