17 references to WrapInIfStatement
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (17)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsRefactoringTests.cs (17)
99await VerifyAsync(WrapInIfStatement("n == " + actual + " == n", "&&"), WrapInIfStatement(expected), languageVersion: languageVersion);
114await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected));
122await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&"));
132await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&"));
140await VerifyAsync(WrapInIfStatement(actual, "&&"), WrapInIfStatement(expected, "&&"));
148await VerifyAsync(WrapInIfStatement(actual, entry: null), WrapInIfStatement(expected, entry: null));
158await VerifyMissingAsync(WrapInIfStatement(actual, "&&"));
177await ValidateAsync(WrapInIfStatement($"this is {pattern} && {expression}", "&&"), WrapInIfStatement($"this is {expected}"));
183await ValidateAsync(WrapInIfStatement($"B1 && this is {pattern} [||]&& {expression} && B2"), WrapInIfStatement($"B1 && this is {expected} && B2"));