Skip to content

Commit 070f782

Browse files
committed
Fix tests.
1 parent 5a8138b commit 070f782

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

PropertyChangedAnalyzers.Test/HandlesRecursion.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public int P2
123123
[TestCaseSource(nameof(AllAnalyzers))]
124124
public static void InProperty(DiagnosticAnalyzer analyzer)
125125
{
126-
var fooCode = @"
126+
var code = @"
127127
namespace N
128128
{
129129
using System;
@@ -266,13 +266,15 @@ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName
266266
}
267267
}
268268
}";
269-
_ = Analyze.GetDiagnostics(analyzer, new[] { fooCode });
269+
270+
_ = Analyze.GetDiagnostics(analyzer, code);
270271
}
271272

272273
[TestCaseSource(nameof(AllAnalyzers))]
273274
public static void Repro(DiagnosticAnalyzer analyzer)
274275
{
275276
var code = @"
277+
#nullable disable
276278
namespace N
277279
{
278280
using System;

0 commit comments

Comments
 (0)