File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
src/NHibernate.Test/Async/NHSpecificTest/NH3386 Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,16 @@ protected override async Task OnTearDownAsync()
42
42
}
43
43
44
44
[ Test ]
45
- public async Task ShouldSupportNonRuntimeExtensionWithoutEntityReferenceAsync ( )
45
+ public void ShouldSupportNonRuntimeExtensionWithoutEntityReference ( )
46
46
{
47
47
var sqlInterceptor = new SqlInterceptor ( ) ;
48
48
using ( ISession session = OpenSession ( sqlInterceptor ) )
49
- using ( session . BeginTransaction ( ) )
50
- {
51
- var result = session . Query < Entity > ( ) . OrderBy ( e => SqlServerFunction . NewID ( ) ) ;
52
- Assert . DoesNotThrowAsync ( ( ) =>
53
- {
54
- result . ToList ( ) ;
55
- }
56
-
57
- ) ;
58
- Assert . That ( sqlInterceptor . Sql . ToString ( ) , Does . Contain ( nameof ( SqlServerFunction . NewID ) ) . IgnoreCase ) ;
59
- }
49
+ using ( session . BeginTransaction ( ) )
50
+ {
51
+ var result = session . Query < Entity > ( ) . OrderBy ( e => SqlServerFunction . NewID ( ) ) ;
52
+ Assert . DoesNotThrowAsync ( ( ) => result . ToListAsync ( ) ) ;
53
+ Assert . That ( sqlInterceptor . Sql . ToString ( ) , Does . Contain ( nameof ( SqlServerFunction . NewID ) ) . IgnoreCase ) ;
54
+ }
60
55
}
61
56
}
62
57
}
You can’t perform that action at this time.
0 commit comments