Skip to content

Commit 32a856a

Browse files
committed
Fixing readme test
1 parent 5135601 commit 32a856a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AutoCtor.Tests/ExampleTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ public static IEnumerable<Func<CodeFileTheoryData>> GetExamples()
128128
};
129129
}
130130

131+
#if ROSLYN_4_4
131132
foreach (var readmeExample in GetExamplesFiles("ReadmeExamples"))
132133
{
133134
yield return () => new CodeFileTheoryData(readmeExample) with
134135
{
135136
IgnoredCompileDiagnostics = ["CS0414", "CS0169"] // Ignore unused fields
136137
};
137138
}
139+
#endif
138140
}
139141
}

0 commit comments

Comments
 (0)