@@ -25,7 +25,7 @@ private ExceptionlessClient CreateClient() {
25
25
return new ExceptionlessClient ( c => {
26
26
c . UseLogger ( new XunitExceptionlessLog ( _writer ) { MinimumLogLevel = LogLevel . Trace } ) ;
27
27
c . ReadFromAttributes ( ) ;
28
- c . UserAgent = "testclient /1.0.0.0" ;
28
+ c . UserAgent = "test-client /1.0.0.0" ;
29
29
30
30
// Disable updating settings.
31
31
c . UpdateSettingsWhenIdleInterval = TimeSpan . Zero ;
@@ -36,7 +36,7 @@ private ExceptionlessClient CreateClient() {
36
36
public void CanAddMultipleDataObjectsToEvent ( ) {
37
37
var client = CreateClient ( ) ;
38
38
var ev = client . CreateLog ( "Test" ) ;
39
- Assert . Equal ( ev . Target . Type , Event . KnownTypes . Log ) ;
39
+ Assert . Equal ( Event . KnownTypes . Log , ev . Target . Type ) ;
40
40
ev . AddObject ( new Person { Name = "Blake" } ) ;
41
41
ev . AddObject ( new Person { Name = "Eric" } ) ;
42
42
ev . AddObject ( new Person { Name = "Ryan" } ) ;
@@ -116,29 +116,28 @@ public async Task CanSubmitManyMessages() {
116
116
Assert . NotNull ( submissionClient ) ;
117
117
Assert . Equal ( 0 , submissionClient . SubmittedEvents ) ;
118
118
119
- using ( var storage = client . Configuration . Resolver . Resolve < IObjectStorage > ( ) as InMemoryObjectStorage ) {
120
- Assert . NotNull ( storage ) ;
121
- Assert . Equal ( 0 , storage . Count ) ;
119
+ using var storage = client . Configuration . Resolver . Resolve < IObjectStorage > ( ) as InMemoryObjectStorage ;
120
+ Assert . NotNull ( storage ) ;
121
+ Assert . Equal ( 0 , storage . Count ) ;
122
122
123
- const int iterations = 200 ;
124
- for ( int i = 1 ; i <= iterations ; i ++ ) {
125
- _writer . WriteLine ( $ "---- { i } ----") ;
126
- client . CreateLog ( typeof ( ExceptionlessClientTests ) . FullName , i . ToString ( ) , LogLevel . Warn )
127
- . AddTags ( "Test" )
128
- . SetUserIdentity ( new UserInfo { Identity = "00001" , Name = "test" } )
129
- . Submit ( ) ;
123
+ const int iterations = 200 ;
124
+ for ( int i = 1 ; i <= iterations ; i ++ ) {
125
+ _writer . WriteLine ( $ "---- { i } ----") ;
126
+ client . CreateLog ( typeof ( ExceptionlessClientTests ) . FullName , i . ToString ( ) , LogLevel . Warn )
127
+ . AddTags ( "Test" )
128
+ . SetUserIdentity ( new UserInfo { Identity = "00001" , Name = "test" } )
129
+ . Submit ( ) ;
130
130
131
- Assert . InRange ( storage . Count , i , i + 1 ) ;
132
- }
131
+ Assert . InRange ( storage . Count , i , i + 1 ) ;
132
+ }
133
133
134
- // Count could be higher due to persisted dictionaries via settings manager / other plugins
135
- Assert . InRange ( storage . Count , iterations , iterations + 1 ) ;
134
+ // Count could be higher due to persisted dictionaries via settings manager / other plugins
135
+ Assert . InRange ( storage . Count , iterations , iterations + 1 ) ;
136
136
137
- await client . ProcessQueueAsync ( ) ;
138
- Assert . Equal ( iterations , submissionClient . SubmittedEvents ) ;
137
+ await client . ProcessQueueAsync ( ) ;
138
+ Assert . Equal ( iterations , submissionClient . SubmittedEvents ) ;
139
139
140
- await client . ShutdownAsync ( ) ;
141
- }
140
+ await client . ShutdownAsync ( ) ;
142
141
}
143
142
144
143
private class Person {
0 commit comments