22{
33 using System ;
44 using System . Collections . Generic ;
5+ using System . Threading . Tasks ;
56
67 using AzureMapsControl . Components . Animations ;
78 using AzureMapsControl . Components . Runtime ;
@@ -115,7 +116,7 @@ public void Should_Create(string animationType)
115116
116117 [ Theory ]
117118 [ MemberData ( nameof ( AllAnimationsTypes ) ) ]
118- public async void Should_DisposeAsync ( string animationType )
119+ public async Task Should_DisposeAsync ( string animationType )
119120 {
120121 var id = "id" ;
121122 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -128,7 +129,7 @@ public async void Should_DisposeAsync(string animationType)
128129
129130 [ Theory ]
130131 [ MemberData ( nameof ( AllAnimationsTypes ) ) ]
131- public async void Should_ThrowAnimationDisposedException_DisposeAsync ( string animationType )
132+ public async Task Should_ThrowAnimationDisposedException_DisposeAsync ( string animationType )
132133 {
133134 var id = "id" ;
134135 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -141,7 +142,7 @@ public async void Should_ThrowAnimationDisposedException_DisposeAsync(string ani
141142
142143 [ Theory ]
143144 [ MemberData ( nameof ( AllPauseAnimationsTypes ) ) ]
144- public async void Should_PauseAsync ( string animationType )
145+ public async Task Should_PauseAsync ( string animationType )
145146 {
146147 var id = "id" ;
147148 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -153,7 +154,7 @@ public async void Should_PauseAsync(string animationType)
153154
154155 [ Theory ]
155156 [ MemberData ( nameof ( AllPauseAnimationsTypes ) ) ]
156- public async void Should_ThrowAnimationDisposedException_PauseAsync ( string animationType )
157+ public async Task Should_ThrowAnimationDisposedException_PauseAsync ( string animationType )
157158 {
158159 var id = "id" ;
159160 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -166,7 +167,7 @@ public async void Should_ThrowAnimationDisposedException_PauseAsync(string anima
166167
167168 [ Theory ]
168169 [ MemberData ( nameof ( AllPlayAnimationsTypes ) ) ]
169- public async void Should_PlayAsync ( string animationType )
170+ public async Task Should_PlayAsync ( string animationType )
170171 {
171172 var id = "id" ;
172173 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -178,7 +179,7 @@ public async void Should_PlayAsync(string animationType)
178179
179180 [ Theory ]
180181 [ MemberData ( nameof ( AllPlayAnimationsTypes ) ) ]
181- public async void Should_ThrowAnimationDisposedException_PlayAsync ( string animationType )
182+ public async Task Should_ThrowAnimationDisposedException_PlayAsync ( string animationType )
182183 {
183184 var id = "id" ;
184185 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -191,7 +192,7 @@ public async void Should_ThrowAnimationDisposedException_PlayAsync(string animat
191192
192193 [ Theory ]
193194 [ MemberData ( nameof ( AllResetAnimationsTypes ) ) ]
194- public async void Should_ResetAsync ( string animationType )
195+ public async Task Should_ResetAsync ( string animationType )
195196 {
196197 var id = "id" ;
197198 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -203,7 +204,7 @@ public async void Should_ResetAsync(string animationType)
203204
204205 [ Theory ]
205206 [ MemberData ( nameof ( AllResetAnimationsTypes ) ) ]
206- public async void Should_ThrowAnimationDisposedException_ResetAsync ( string animationType )
207+ public async Task Should_ThrowAnimationDisposedException_ResetAsync ( string animationType )
207208 {
208209 var id = "id" ;
209210 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -216,7 +217,7 @@ public async void Should_ThrowAnimationDisposedException_ResetAsync(string anima
216217
217218 [ Theory ]
218219 [ MemberData ( nameof ( AllSeekAnimationsTypes ) ) ]
219- public async void Should_SeekAsync ( string animationType )
220+ public async Task Should_SeekAsync ( string animationType )
220221 {
221222 var id = "id" ;
222223 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -229,7 +230,7 @@ public async void Should_SeekAsync(string animationType)
229230
230231 [ Theory ]
231232 [ MemberData ( nameof ( AllSeekAnimationsTypes ) ) ]
232- public async void Should_ThrowAnimationDisposedException_SeekAsync ( string animationType )
233+ public async Task Should_ThrowAnimationDisposedException_SeekAsync ( string animationType )
233234 {
234235 var id = "id" ;
235236 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -243,7 +244,7 @@ public async void Should_ThrowAnimationDisposedException_SeekAsync(string animat
243244
244245 [ Theory ]
245246 [ MemberData ( nameof ( AllStopAnimationsTypes ) ) ]
246- public async void Should_StopAsync ( string animationType )
247+ public async Task Should_StopAsync ( string animationType )
247248 {
248249 var id = "id" ;
249250 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
@@ -255,7 +256,7 @@ public async void Should_StopAsync(string animationType)
255256
256257 [ Theory ]
257258 [ MemberData ( nameof ( AllStopAnimationsTypes ) ) ]
258- public async void Should_ThrowAnimationDisposedException_StopAsync ( string animationType )
259+ public async Task Should_ThrowAnimationDisposedException_StopAsync ( string animationType )
259260 {
260261 var id = "id" ;
261262 var animation = AnimationFactory . GetAnimation ( animationType , id , _jsRuntime . Object ) ;
0 commit comments