@@ -26,7 +26,7 @@ public void Log_IgnoresExceptionInIntermediateLoggersAndThrowsAggregateException
26
26
// Assert
27
27
Assert . Equal ( new [ ] { "provider1.Test-Hello!" , "provider3.Test-Hello!" } , store ) ;
28
28
Assert . NotNull ( aggregateException ) ;
29
- Assert . Equal ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
29
+ Assert . StartsWith ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
30
30
Assert . Equal ( 1 , aggregateException . InnerExceptions . Count ) ;
31
31
var exception = aggregateException . InnerExceptions [ 0 ] ;
32
32
Assert . Equal ( "provider2.Test-Error occurred while logging data." , exception . Message ) ;
@@ -49,7 +49,7 @@ public void BeginScope_IgnoresExceptionInIntermediateLoggersAndThrowsAggregateEx
49
49
// Assert
50
50
Assert . Equal ( new [ ] { "provider1.Test-Scope1" , "provider3.Test-Scope1" } , store ) ;
51
51
Assert . NotNull ( aggregateException ) ;
52
- Assert . Equal ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
52
+ Assert . StartsWith ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
53
53
Assert . Equal ( 1 , aggregateException . InnerExceptions . Count ) ;
54
54
var exception = aggregateException . InnerExceptions [ 0 ] ;
55
55
Assert . Equal ( "provider2.Test-Error occurred while creating scope." , exception . Message ) ;
@@ -72,7 +72,7 @@ public void IsEnabled_IgnoresExceptionInIntermediateLoggers()
72
72
// Assert
73
73
Assert . Equal ( new [ ] { "provider1.Test-Hello!" , "provider3.Test-Hello!" } , store ) ;
74
74
Assert . NotNull ( aggregateException ) ;
75
- Assert . Equal ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
75
+ Assert . StartsWith ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
76
76
Assert . Equal ( 1 , aggregateException . InnerExceptions . Count ) ;
77
77
var exception = aggregateException . InnerExceptions [ 0 ] ;
78
78
Assert . Equal ( "provider2.Test-Error occurred while checking if logger is enabled." , exception . Message ) ;
@@ -94,7 +94,7 @@ public void Log_AggregatesExceptionsFromMultipleLoggers()
94
94
// Assert
95
95
Assert . Empty ( store ) ;
96
96
Assert . NotNull ( aggregateException ) ;
97
- Assert . Equal ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
97
+ Assert . StartsWith ( "An error occurred while writing to logger(s)." , aggregateException . Message ) ;
98
98
var exceptions = aggregateException . InnerExceptions ;
99
99
Assert . Equal ( 2 , exceptions . Count ) ;
100
100
Assert . Equal ( "provider1.Test-Error occurred while logging data." , exceptions [ 0 ] . Message ) ;
0 commit comments