8 references to WrapInSwitchLabel
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (8)
178
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression}", "when"),
WrapInSwitchLabel
($"{expected}"));
179
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression}", "case"),
WrapInSwitchLabel
($"{expected}"));
184
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression} && B1 && B2", "when"),
WrapInSwitchLabel
($"{expected} when B1 && B2"));
185
await ValidateAsync(
WrapInSwitchLabel
($"{pattern} when {expression} && B1 && B2", "case"),
WrapInSwitchLabel
($"{expected} when B1 && B2"));