File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/NHibernate.Test/Async/NHSpecificTest/Logs Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public async Task WillGetSessionIdFromSessionLogsAsync()
5151
5252 await ( s . GetAsync < Person > ( 1 ) ) ; //will execute some sql
5353
54- var loggingEvent = spy . Events [ 0 ] ;
54+ var loggingEvent = spy . GetWholeLog ( ) ;
5555 Assert . That ( loggingEvent . Contains ( sessionId . ToString ( ) ) , Is . True ) ;
5656 }
5757 }
@@ -89,12 +89,9 @@ public TextLogSpy(string loggerName, string pattern)
8989 loggerImpl . Level = Level . All ;
9090 }
9191
92- public string [ ] Events
92+ public string GetWholeLog ( )
9393 {
94- get
95- {
96- return stringBuilder . ToString ( ) . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . RemoveEmptyEntries ) ;
97- }
94+ return stringBuilder . ToString ( ) ;
9895 }
9996
10097 public void Dispose ( )
You can’t perform that action at this time.
0 commit comments