@@ -118,7 +118,10 @@ public async Task WillGetSessionIdFromConsecutiveSessionsLogsAsync()
118
118
for ( var j = 0 ; j < 10 ; j ++ )
119
119
{
120
120
var sessionId = sessions [ j ] . GetSessionImplementation ( ) . SessionId ;
121
- Assert . That ( loggingEvent , Does . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ") ) ;
121
+ Assert . That (
122
+ loggingEvent ,
123
+ Does . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ")
124
+ . Or . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (4:0:0)] | SessionId: { sessionId } ") ) ;
122
125
}
123
126
}
124
127
}
@@ -138,7 +141,10 @@ public async Task WillGetSessionIdFromInterlacedSessionsLogsAsync()
138
141
for ( var i = 0 ; i < interceptor . SessionIds . Count ; i ++ )
139
142
{
140
143
var sessionId = interceptor . SessionIds [ i ] ;
141
- Assert . That ( loggingEvent , Does . Contain ( $ "p0 = { i + 1 } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ") ) ;
144
+ Assert . That (
145
+ loggingEvent ,
146
+ Does . Contain ( $ "p0 = { i + 1 } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ")
147
+ . Or . Contain ( ( $ "p0 = { i + 1 } [Type: Int32 (4:0:0)] | SessionId: { sessionId } ") ) ) ;
142
148
}
143
149
Assert . That ( loggingEvent , Does . Contain ( $ "Person person0_ | SessionId: { s . GetSessionImplementation ( ) . SessionId } ") ) ;
144
150
}
@@ -205,7 +211,10 @@ public async Task WillGetSessionIdFromSessionLogsConcurrentAsync()
205
211
for ( var j = 0 ; j < 10 ; j ++ )
206
212
{
207
213
var sessionId = sessionIds [ i ] ;
208
- Assert . That ( loggingEvent , Does . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ") ) ;
214
+ Assert . That (
215
+ loggingEvent ,
216
+ Does . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (0:0:0)] | SessionId: { sessionId } ")
217
+ . Or . Contain ( $ "p0 = { i * 10 + j } [Type: Int32 (4:0:0)] | SessionId: { sessionId } ") ) ;
209
218
}
210
219
}
211
220
}
0 commit comments