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()
40
40
41
41
s . Get < Person > ( 1 ) ; //will execute some sql
42
42
43
- var loggingEvent = spy . Events [ 0 ] ;
43
+ var loggingEvent = spy . GetWholeLog ( ) ;
44
44
Assert . That ( loggingEvent . Contains ( sessionId . ToString ( ) ) , Is . True ) ;
45
45
}
46
46
}
@@ -73,12 +73,9 @@ public TextLogSpy(string loggerName, string pattern)
73
73
loggerImpl . Level = Level . All ;
74
74
}
75
75
76
- public string [ ] Events
76
+ public string GetWholeLog ( )
77
77
{
78
- get
79
- {
80
- return stringBuilder . ToString ( ) . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . RemoveEmptyEntries ) ;
81
- }
78
+ return stringBuilder . ToString ( ) ;
82
79
}
83
80
84
81
public void Dispose ( )
@@ -89,4 +86,4 @@ public void Dispose()
89
86
}
90
87
91
88
92
- }
89
+ }
You can’t perform that action at this time.
0 commit comments