4 references to TestStatement
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (4)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (4)
49await TestStatement($"if ({input}) {{ }}", $"if ({output}) {{ }}", version); 50await TestStatement($"var y = {input};", $"var y = {output};", version); 51await TestStatement($"return {input};", $"return {output};", version); 61=> await TestStatement($"while ({input}) {{ }}", $"while ({output}) {{ }}");