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()
51
51
52
52
await ( s . GetAsync < Person > ( 1 ) ) ; //will execute some sql
53
53
54
- var loggingEvent = spy . Events [ 0 ] ;
54
+ var loggingEvent = spy . GetWholeLog ( ) ;
55
55
Assert . That ( loggingEvent . Contains ( sessionId . ToString ( ) ) , Is . True ) ;
56
56
}
57
57
}
@@ -89,12 +89,9 @@ public TextLogSpy(string loggerName, string pattern)
89
89
loggerImpl . Level = Level . All ;
90
90
}
91
91
92
- public string [ ] Events
92
+ public string GetWholeLog ( )
93
93
{
94
- get
95
- {
96
- return stringBuilder . ToString ( ) . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . RemoveEmptyEntries ) ;
97
- }
94
+ return stringBuilder . ToString ( ) ;
98
95
}
99
96
100
97
public void Dispose ( )
You can’t perform that action at this time.
0 commit comments