17 references to WrapInIfStatement
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (17)
UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (17)
100await VerifyAsync(WrapInIfStatement("n == " + actual + " == n", "&&"), WrapInIfStatement(expected), languageVersion: languageVersion); 115await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected)); 123await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&")); 135await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&")); 143await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&")); 151await VerifyAsync(WrapInIfStatement(actual, entry: null), WrapInIfStatement(expected, entry: null)); 161await VerifyMissingAsync(WrapInIfStatement(actual, "&&")); 180await ValidateAsync(WrapInIfStatement($"this is {pattern} && {expression}", "&&"), WrapInIfStatement($"this is {expected}")); 186await ValidateAsync(WrapInIfStatement($"B1 && this is {pattern} [||]&& {expression} && B2"), WrapInIfStatement($"B1 && this is {expected} && B2"));