8 references to WrapInSwitchArm
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (8)
176
await ValidateAsync(
WrapInSwitchArm
($"{pattern} when {expression}", "when"),
WrapInSwitchArm
($"{expected}"));
177
await ValidateAsync(
WrapInSwitchArm
($"{pattern} when {expression}", "=>"),
WrapInSwitchArm
($"{expected}"));
182
await ValidateAsync(
WrapInSwitchArm
($"{pattern} when {expression} && B1 && B2", "when"),
WrapInSwitchArm
($"{expected} when B1 && B2"));
183
await ValidateAsync(
WrapInSwitchArm
($"{pattern} when {expression} && B1 && B2", "=>"),
WrapInSwitchArm
($"{expected} when B1 && B2"));