Skip to content

Commit 9f4d873

Browse files
committed
Commented invalid generated test
1 parent 01b7da5 commit 9f4d873

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/NHibernate.Test/Async/Hql/Ast/WithClauseFixture.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,33 +51,33 @@ public async Task WithClauseFailsWithFetchAsync()
5151
await (data.CleanupAsync());
5252
}
5353

54-
[Test]
55-
public void ValidWithSemanticsAsync()
56-
{
57-
using (var s = OpenSession())
58-
{
59-
60-
Assert.Multiple(
61-
() =>
62-
{
63-
return Task.FromResult<object>(Assert.DoesNotThrowAsync(
64-
() => s.CreateQuery(
65-
"from Animal a inner join a.offspring o inner join o.mother as m inner join m.father as f with o.bodyWeight > 1").ListAsync()
66-
));
67-
68-
return Task.FromResult<object>(Assert.DoesNotThrowAsync(
69-
() =>
70-
s.CreateQuery("from Human h inner join h.friends as f with f.bodyWeight < :someLimit").SetDouble("someLimit", 1).ListAsync(), "Failed query 1"));
71-
72-
return Task.FromResult<object>(Assert.DoesNotThrowAsync(
73-
() =>
74-
s.CreateQuery("from Human h inner join h.offspring o with o.mother.father = :cousin")
75-
.SetInt32("cousin", 123)
76-
.ListAsync(),
77-
"Failed query 2"));
78-
});
79-
}
80-
}
54+
// [Test]
55+
// public void ValidWithSemanticsAsync()
56+
// {
57+
// using (var s = OpenSession())
58+
// {
59+
//
60+
// Assert.Multiple(
61+
// () =>
62+
// {
63+
// return Task.FromResult<object>(Assert.DoesNotThrowAsync(
64+
// () => s.CreateQuery(
65+
// "from Animal a inner join a.offspring o inner join o.mother as m inner join m.father as f with o.bodyWeight > 1").ListAsync()
66+
// ));
67+
//
68+
// return Task.FromResult<object>(Assert.DoesNotThrowAsync(
69+
// () =>
70+
// s.CreateQuery("from Human h inner join h.friends as f with f.bodyWeight < :someLimit").SetDouble("someLimit", 1).ListAsync(), "Failed query 1"));
71+
//
72+
// return Task.FromResult<object>(Assert.DoesNotThrowAsync(
73+
// () =>
74+
// s.CreateQuery("from Human h inner join h.offspring o with o.mother.father = :cousin")
75+
// .SetInt32("cousin", 123)
76+
// .ListAsync(),
77+
// "Failed query 2"));
78+
// });
79+
// }
80+
// }
8181

8282
[Test]
8383
public async Task WithClauseAsync()

0 commit comments

Comments
 (0)