7 references to VerifyVisualBasicAsync
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (7)
Microsoft.NetCore.Analyzers\Usage\DoNotCompareSpanToNullTests.cs (7)
53
await
VerifyVisualBasicAsync
("If {|#0:span = Nothing|} Then\nEnd If", "If span.IsEmpty Then\nEnd If");
62
await
VerifyVisualBasicAsync
("If {|#0:span <> Nothing|} Then\nEnd If", "If Not span.IsEmpty Then\nEnd If");
71
await
VerifyVisualBasicAsync
("Dim x = {|#0:span = Nothing|}", "Dim x = span.IsEmpty");
82
await
VerifyVisualBasicAsync
("Debug.Assert({|#0:span = Nothing|})", "Debug.Assert(span.IsEmpty)");
83
await
VerifyVisualBasicAsync
("Debug.Assert({|#0:span <> Nothing|})", "Debug.Assert(Not span.IsEmpty)");
125
await
VerifyVisualBasicAsync
("Dim x = {|#0:Nothing = span|}", "Dim x = span.IsEmpty");
135
await
VerifyVisualBasicAsync
("Dim x = {|#0:Nothing <> span|}", "Dim x = Not span.IsEmpty");