@@ -12,50 +12,50 @@ namespace Tests.CodeOfChaos.Testing.TUnit;
12
12
// ---------------------------------------------------------------------------------------------------------------------
13
13
public class TUnitExtensionsServiceCollectionTests {
14
14
[ Test ]
15
- public async Task ContainsServiceKey_ShouldAssert ( ) {
15
+ public async Task ContainsServiceType_ShouldAssert ( ) {
16
16
// Arrange
17
17
var services = new ServiceCollection ( ) ;
18
18
19
19
// Act
20
20
services . AddSingleton < string , string > ( ) ;
21
21
22
22
// Assert
23
- await Assert . That ( services ) . ContainsServiceKey < string > ( ) ;
23
+ await Assert . That ( services ) . ContainsServiceType < string > ( ) ;
24
24
}
25
25
26
26
[ Test ]
27
- public async Task ContainsServiceKey_ShouldThrowAssertion ( ) {
27
+ public async Task ContainsServiceType_ShouldThrowAssertion ( ) {
28
28
// Arrange
29
29
var services = new ServiceCollection ( ) ;
30
30
31
31
// Act
32
32
services . AddSingleton < string , string > ( ) ;
33
33
34
34
// Assert
35
- await Assert . ThrowsAsync < AssertionException > ( async ( ) => await Assert . That ( services ) . ContainsServiceKey < int > ( ) ) ;
35
+ await Assert . ThrowsAsync < AssertionException > ( async ( ) => await Assert . That ( services ) . ContainsServiceType < int > ( ) ) ;
36
36
}
37
37
38
38
[ Test ]
39
- public async Task DoesNotContainServiceKey_ShouldAssert ( ) {
39
+ public async Task DoesNotContainServiceType_ShouldAssert ( ) {
40
40
// Arrange
41
41
var services = new ServiceCollection ( ) ;
42
42
43
43
// Act
44
44
services . AddSingleton < string , string > ( ) ;
45
45
46
46
// Assert
47
- await Assert . That ( services ) . DoesNotContainServiceKey < int > ( ) ;
47
+ await Assert . That ( services ) . DoesNotContainServiceType < int > ( ) ;
48
48
}
49
49
50
50
[ Test ]
51
- public async Task DoesNotContainServiceKey_ShouldThrowAssertion ( ) {
51
+ public async Task DoesNotContainServiceType_ShouldThrowAssertion ( ) {
52
52
// Arrange
53
53
var services = new ServiceCollection ( ) ;
54
54
55
55
// Act
56
56
services . AddSingleton < string , string > ( ) ;
57
57
58
58
// Assert
59
- await Assert . ThrowsAsync < AssertionException > ( async ( ) => await Assert . That ( services ) . DoesNotContainServiceKey < string > ( ) ) ;
59
+ await Assert . ThrowsAsync < AssertionException > ( async ( ) => await Assert . That ( services ) . DoesNotContainServiceType < string > ( ) ) ;
60
60
}
61
61
}
0 commit comments