@@ -20,7 +20,22 @@ public void I_can_use_the_logger_with_the_default_configuration()
20
20
21
21
// Assert
22
22
logger . Context . Should ( ) . NotBeNull ( ) ;
23
- logger . Context ? . Options . Should ( ) . Be ( TestLoggerOptions . Default ) ;
23
+ logger . Context ? . Options . Should ( ) . BeEquivalentTo ( TestLoggerOptions . Default ) ;
24
+ }
25
+
26
+ [ Fact ]
27
+ public void I_can_use_the_logger_with_an_empty_configuration ( )
28
+ {
29
+ // Arrange
30
+ var logger = new TestLogger ( ) ;
31
+ var events = new FakeTestLoggerEvents ( ) ;
32
+
33
+ // Act
34
+ logger . Initialize ( events , new Dictionary < string , string ? > ( ) ) ;
35
+
36
+ // Assert
37
+ logger . Context . Should ( ) . NotBeNull ( ) ;
38
+ logger . Context ? . Options . Should ( ) . BeEquivalentTo ( TestLoggerOptions . Default ) ;
24
39
}
25
40
26
41
[ Fact ]
@@ -35,7 +50,8 @@ public void I_can_use_the_logger_with_a_custom_configuration()
35
50
[ "annotations.titleFormat" ] = "TitleFormat" ,
36
51
[ "annotations.messageFormat" ] = "MessageFormat" ,
37
52
[ "summary.includePassedTests" ] = "true" ,
38
- [ "summary.includeSkippedTests" ] = "true"
53
+ [ "summary.includeSkippedTests" ] = "true" ,
54
+ [ "summary.includeNotFoundTests" ] = "true"
39
55
} ;
40
56
41
57
// Act
@@ -47,5 +63,6 @@ public void I_can_use_the_logger_with_a_custom_configuration()
47
63
logger . Context ? . Options . AnnotationMessageFormat . Should ( ) . Be ( "MessageFormat" ) ;
48
64
logger . Context ? . Options . SummaryIncludePassedTests . Should ( ) . BeTrue ( ) ;
49
65
logger . Context ? . Options . SummaryIncludeSkippedTests . Should ( ) . BeTrue ( ) ;
66
+ logger . Context ? . Options . SummaryIncludeNotFoundTests . Should ( ) . BeTrue ( ) ;
50
67
}
51
68
}
0 commit comments