File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/NHibernate.Test/NHSpecificTest/Logs Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public void WillGetSessionIdFromSessionLogs()
4040
4141 s . Get < Person > ( 1 ) ; //will execute some sql
4242
43- var loggingEvent = spy . Events [ 0 ] ;
43+ var loggingEvent = spy . GetWholeLog ( ) ;
4444 Assert . That ( loggingEvent . Contains ( sessionId . ToString ( ) ) , Is . True ) ;
4545 }
4646 }
@@ -73,12 +73,9 @@ public TextLogSpy(string loggerName, string pattern)
7373 loggerImpl . Level = Level . All ;
7474 }
7575
76- public string [ ] Events
76+ public string GetWholeLog ( )
7777 {
78- get
79- {
80- return stringBuilder . ToString ( ) . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . RemoveEmptyEntries ) ;
81- }
78+ return stringBuilder . ToString ( ) ;
8279 }
8380
8481 public void Dispose ( )
@@ -89,4 +86,4 @@ public void Dispose()
8986 }
9087
9188
92- }
89+ }
You can’t perform that action at this time.
0 commit comments