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