@@ -13,11 +13,7 @@ public partial class TestFuture : Test
1313 [ UnitySetUp ] public override IEnumerator SetUp ( ) => base . SetUp ( ) ;
1414 [ UnityTearDown ] public override IEnumerator TearDown ( ) => base . TearDown ( ) ;
1515
16- [ UnityTest ] public IEnumerator GetAllLoadingFutures_NoLogs ( )
17- {
18- ImageLoader . settings . debugLevel = DebugLevel . Error ;
19- yield return GetAllLoadingFutures ( ) ;
20- }
16+ [ UnityTest ] public IEnumerator GetAllLoadingFutures_NoLogs ( ) => TestUtils . RunNoLogs ( GetAllLoadingFutures ) ;
2117 [ UnityTest ] public IEnumerator GetAllLoadingFutures ( )
2218 {
2319 ImageLoader . settings . useDiskCache = true ;
@@ -33,11 +29,7 @@ [UnityTest] public IEnumerator GetAllLoadingFutures()
3329 Assert . Zero ( loadingFutures . Count ) ;
3430 yield return UniTask . Yield ( ) ;
3531 }
36- [ UnityTest ] public IEnumerator LoadingRefAndWaiting_NoLogs ( )
37- {
38- ImageLoader . settings . debugLevel = DebugLevel . Error ;
39- yield return LoadingRefAndWaiting ( ) ;
40- }
32+ [ UnityTest ] public IEnumerator LoadingRefAndWaiting_NoLogs ( ) => TestUtils . RunNoLogs ( LoadingRefAndWaiting ) ;
4133 [ UnityTest ] public IEnumerator LoadingRefAndWaiting ( )
4234 {
4335 ImageLoader . settings . useDiskCache = true ;
@@ -59,11 +51,7 @@ [UnityTest] public IEnumerator LoadingRefAndWaiting()
5951 Assert . IsNull ( ref0 . Value ) ;
6052 Assert . AreEqual ( 0 , Reference < Sprite > . Counter ( url1 ) ) ;
6153 }
62- [ UnityTest ] public IEnumerator Loading2RefAndCancelFirst_NoLogs ( )
63- {
64- ImageLoader . settings . debugLevel = DebugLevel . Error ;
65- yield return Loading2RefAndCancelFirst ( ) ;
66- }
54+ [ UnityTest ] public IEnumerator Loading2RefAndCancelFirst_NoLogs ( ) => TestUtils . RunNoLogs ( Loading2RefAndCancelFirst ) ;
6755 [ UnityTest ] public IEnumerator Loading2RefAndCancelFirst ( )
6856 {
6957 ImageLoader . settings . useDiskCache = true ;
@@ -92,11 +80,7 @@ [UnityTest] public IEnumerator Loading2RefAndCancelFirst()
9280 future2 . Dispose ( ) ;
9381 ref2 . Dispose ( ) ;
9482 }
95- [ UnityTest ] public IEnumerator Loading2RefAndWait_NoLogs ( )
96- {
97- ImageLoader . settings . debugLevel = DebugLevel . Error ;
98- yield return Loading2RefAndWait ( ) ;
99- }
83+ [ UnityTest ] public IEnumerator Loading2RefAndWait_NoLogs ( ) => TestUtils . RunNoLogs ( Loading2RefAndWait ) ;
10084 [ UnityTest ] public IEnumerator Loading2RefAndWait ( )
10185 {
10286 ImageLoader . settings . useDiskCache = true ;
@@ -131,11 +115,7 @@ [UnityTest] public IEnumerator Loading2RefAndWait()
131115 ImageLoader . ClearMemoryCache ( url1 ) ;
132116 Assert . AreEqual ( 0 , Reference < Sprite > . Counter ( url1 ) ) ;
133117 }
134- [ UnityTest ] public IEnumerator Loading2RefAndDisposeAll_NoLogs ( )
135- {
136- ImageLoader . settings . debugLevel = DebugLevel . Error ;
137- yield return Loading2RefAndDisposeAll ( ) ;
138- }
118+ [ UnityTest ] public IEnumerator Loading2RefAndDisposeAll_NoLogs ( ) => TestUtils . RunNoLogs ( Loading2RefAndDisposeAll ) ;
139119 [ UnityTest ] public IEnumerator Loading2RefAndDisposeAll ( )
140120 {
141121 ImageLoader . settings . useDiskCache = true ;
@@ -160,11 +140,7 @@ [UnityTest] public IEnumerator Loading2RefAndDisposeAll()
160140 yield return UniTask . Delay ( 1000 ) . ToCoroutine ( ) ;
161141 Assert . AreEqual ( 0 , Reference < Sprite > . Counter ( url1 ) ) ;
162142 }
163- [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock_NoLogs ( )
164- {
165- ImageLoader . settings . debugLevel = DebugLevel . Error ;
166- yield return DisposeOnOutDisposingBlock ( ) ;
167- }
143+ [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock_NoLogs ( ) => TestUtils . RunNoLogs ( DisposeOnOutDisposingBlock ) ;
168144 [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock ( )
169145 {
170146 ImageLoader . settings . useDiskCache = true ;
@@ -189,11 +165,7 @@ [UnityTest] public IEnumerator DisposeOnOutDisposingBlock()
189165 Assert . AreEqual ( 0 , Reference < Sprite > . Counter ( url ) , $ "Should be zero references to URL={ url } ") ;
190166 }
191167 }
192- [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock2_NoLogs ( )
193- {
194- ImageLoader . settings . debugLevel = DebugLevel . Error ;
195- yield return DisposeOnOutDisposingBlock2 ( ) ;
196- }
168+ [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock2_NoLogs ( ) => TestUtils . RunNoLogs ( DisposeOnOutDisposingBlock2 ) ;
197169 [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock2 ( )
198170 {
199171 ImageLoader . settings . useDiskCache = true ;
@@ -217,11 +189,7 @@ [UnityTest] public IEnumerator DisposeOnOutDisposingBlock2()
217189 Assert . AreEqual ( 0 , Reference < Sprite > . Counter ( url ) , $ "Should be zero references to URL={ url } ") ;
218190 }
219191 }
220- [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock3_NoLogs ( )
221- {
222- ImageLoader . settings . debugLevel = DebugLevel . Error ;
223- yield return DisposeOnOutDisposingBlock3 ( ) ;
224- }
192+ [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock3_NoLogs ( ) => TestUtils . RunNoLogs ( DisposeOnOutDisposingBlock3 ) ;
225193 [ UnityTest ] public IEnumerator DisposeOnOutDisposingBlock3 ( )
226194 {
227195 ImageLoader . settings . useDiskCache = true ;
@@ -256,11 +224,7 @@ [UnityTest] public IEnumerator DisposeOnOutDisposingBlock3()
256224 }
257225 }
258226
259- [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlAndTimeout_NoLogs ( )
260- {
261- ImageLoader . settings . debugLevel = DebugLevel . Error ;
262- yield return EventFailedWithIncorrectUrlAndTimeout ( ) ;
263- }
227+ [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlAndTimeout_NoLogs ( ) => TestUtils . RunNoLogs ( EventFailedWithIncorrectUrlAndTimeout ) ;
264228 [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlAndTimeout ( )
265229 {
266230 ImageLoader . settings . useDiskCache = true ;
@@ -286,11 +250,7 @@ [UnityTest] public IEnumerator EventFailedWithIncorrectUrlAndTimeout()
286250 yield return UniTask . Delay ( TimeSpan . FromSeconds ( 2 ) ) . ToCoroutine ( ) ;
287251 future1 . Dispose ( ) ;
288252 }
289- [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlNotCalledBecauseOfCancel_NoLogs ( )
290- {
291- ImageLoader . settings . debugLevel = DebugLevel . Error ;
292- yield return EventFailedWithIncorrectUrlNotCalledBecauseOfCancel ( ) ;
293- }
253+ [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlNotCalledBecauseOfCancel_NoLogs ( ) => TestUtils . RunNoLogs ( EventFailedWithIncorrectUrlNotCalledBecauseOfCancel ) ;
294254 [ UnityTest ] public IEnumerator EventFailedWithIncorrectUrlNotCalledBecauseOfCancel ( )
295255 {
296256 ImageLoader . settings . useDiskCache = true ;
@@ -316,11 +276,7 @@ [UnityTest] public IEnumerator EventFailedWithIncorrectUrlNotCalledBecauseOfCanc
316276 Assert . IsNull ( exception ) ;
317277 future1 . Dispose ( ) ;
318278 }
319- [ UnityTest ] public IEnumerator AsyncOperationCompletion_NoLogs ( )
320- {
321- ImageLoader . settings . debugLevel = DebugLevel . Error ;
322- yield return AsyncOperationCompletion ( ) ;
323- }
279+ [ UnityTest ] public IEnumerator AsyncOperationCompletion_NoLogs ( ) => TestUtils . RunNoLogs ( AsyncOperationCompletion ) ;
324280 [ UnityTest ] public IEnumerator AsyncOperationCompletion ( )
325281 {
326282 ImageLoader . settings . useDiskCache = true ;
@@ -337,11 +293,7 @@ [UnityTest] public IEnumerator AsyncOperationCompletion()
337293 }
338294 yield return UniTask . Delay ( TimeSpan . FromSeconds ( 1 ) ) . ToCoroutine ( ) ;
339295 }
340- [ UnityTest ] public IEnumerator AsyncOperationCompletionAfterCancel_NoLogs ( )
341- {
342- ImageLoader . settings . debugLevel = DebugLevel . Error ;
343- yield return AsyncOperationCompletionAfterCancel ( ) ;
344- }
296+ [ UnityTest ] public IEnumerator AsyncOperationCompletionAfterCancel_NoLogs ( ) => TestUtils . RunNoLogs ( AsyncOperationCompletionAfterCancel ) ;
345297 [ UnityTest ] public IEnumerator AsyncOperationCompletionAfterCancel ( )
346298 {
347299 ImageLoader . settings . useDiskCache = true ;
0 commit comments