Skip to content

Commit 00001e9

Browse files
committed
fix DeepSource
1 parent c8c5909 commit 00001e9

File tree

1 file changed

+19
-34
lines changed

1 file changed

+19
-34
lines changed

src/NHibernate.Test/Hql/Ast/ParsingFixture.cs

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,40 +69,25 @@ public void ShowExceptionQueries()
6969
/// </summary>
7070
public class QueryFactoryClass
7171
{
72-
public static IEnumerable<TestCaseData> TestCases
73-
{
74-
get
75-
{
76-
// TODO - need to handle Ignore better (it won't show in results...)
77-
return EnumerateTests(
78-
td => !td.Ignore && !td.Result.StartsWith("Exception"),
79-
td => new TestCaseData(td.Query)
80-
.Returns(td.Result)
81-
.SetCategory(td.Category)
82-
.SetName(td.Name)
83-
.SetDescription(td.Description));
84-
}
85-
}
86-
87-
public static IEnumerable<string> GetIgnores
88-
{
89-
get
90-
{
91-
return EnumerateTests(
92-
td => td.Ignore,
93-
td => td.Query);
94-
}
95-
}
96-
97-
public static IEnumerable<string> GetExceptions
98-
{
99-
get
100-
{
101-
return EnumerateTests(
102-
td => td.Result.StartsWith("Exception"),
103-
td => td.Query);
104-
}
105-
}
72+
public static IEnumerable<TestCaseData> TestCases =>
73+
// TODO - need to handle Ignore better (it won't show in results...)
74+
EnumerateTests(
75+
td => !td.Ignore && !td.Result.StartsWith("Exception"),
76+
td => new TestCaseData(td.Query)
77+
.Returns(td.Result)
78+
.SetCategory(td.Category)
79+
.SetName(td.Name)
80+
.SetDescription(td.Description));
81+
82+
public static IEnumerable<string> GetIgnores =>
83+
EnumerateTests(
84+
td => td.Ignore,
85+
td => td.Query);
86+
87+
public static IEnumerable<string> GetExceptions =>
88+
EnumerateTests(
89+
td => td.Result.StartsWith("Exception"),
90+
td => td.Query);
10691

10792
static IEnumerable<T> EnumerateTests<T>(
10893
Func<QueryTestData, bool> predicate,

0 commit comments

Comments
 (0)