@@ -20,7 +20,7 @@ public void Empty_Options()
20
20
Action act = ( ) => PipelineFactory . CreateClient ( ( options ) => { } )
21
21
. GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
22
22
23
- act . ShouldThrow < InvalidOperationException > ( )
23
+ act . Should ( ) . Throw < InvalidOperationException > ( )
24
24
. WithMessage ( "You must either set Authority or IntrospectionEndpoint" ) ;
25
25
}
26
26
@@ -32,7 +32,7 @@ public void Authority_No_Scope_Details()
32
32
options . Authority = "http://foo" ;
33
33
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
34
34
35
- act . ShouldThrow < InvalidOperationException > ( )
35
+ act . Should ( ) . Throw < InvalidOperationException > ( )
36
36
. WithMessage ( "You must either set a ClientId or set an introspection HTTP handler" ) ;
37
37
}
38
38
@@ -46,7 +46,7 @@ public void No_Token_Retriever()
46
46
options . TokenRetriever = null ;
47
47
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
48
48
49
- act . ShouldThrow < ArgumentException > ( )
49
+ act . Should ( ) . Throw < ArgumentException > ( )
50
50
. Where ( e => e . Message . StartsWith ( "TokenRetriever must be set" ) ) ;
51
51
}
52
52
@@ -60,7 +60,7 @@ public void Endpoint_But_No_Authority()
60
60
61
61
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
62
62
63
- act . ShouldNotThrow ( ) ;
63
+ act . Should ( ) . NotThrow ( ) ;
64
64
}
65
65
66
66
[ Fact ]
@@ -74,7 +74,7 @@ public void Caching_With_Caching_Service()
74
74
75
75
} , addCaching : true ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
76
76
77
- act . ShouldNotThrow ( ) ;
77
+ act . Should ( ) . NotThrow ( ) ;
78
78
}
79
79
80
80
[ Fact ]
@@ -88,7 +88,7 @@ public void Caching_Without_Caching_Service()
88
88
89
89
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
90
90
91
- act . ShouldThrow < ArgumentException > ( )
91
+ act . Should ( ) . Throw < ArgumentException > ( )
92
92
. Where ( e => e . Message . StartsWith ( "Caching is enabled, but no IDistributedCache is found in the services collection" ) ) ;
93
93
}
94
94
@@ -102,7 +102,7 @@ public void No_ClientName_But_Introspection_Handler()
102
102
103
103
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
104
104
105
- act . ShouldNotThrow ( ) ;
105
+ act . Should ( ) . NotThrow ( ) ;
106
106
}
107
107
108
108
[ Fact ]
@@ -114,7 +114,7 @@ public void Authority_No_Network_Delay_Load()
114
114
options . ClientId = "scope" ;
115
115
} ) . GetAsync ( "http://test" ) . GetAwaiter ( ) . GetResult ( ) ;
116
116
117
- act . ShouldNotThrow ( ) ;
117
+ act . Should ( ) . NotThrow ( ) ;
118
118
}
119
119
120
120
[ Fact ]
0 commit comments