@@ -15,9 +15,8 @@ import Foundation
1515@testable import ReactiveCollectionsKit
1616import XCTest
1717
18- final class TestCollectionViewDriver : UnitTestCase , @ unchecked Sendable {
18+ final class TestCollectionViewDriver : UnitTestCase {
1919
20- @MainActor
2120 func test_numberOfSections_numberOfItems( ) {
2221 let sections = Int . random ( in: 5 ... 10 )
2322 let cells = Int . random ( in: 5 ... 15 )
@@ -37,7 +36,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
3736 self . keepDriverAlive ( driver)
3837 }
3938
40- @MainActor
4139 func test_numberOfSections_isEmpty( ) {
4240 let driver = CollectionViewDriver (
4341 view: self . collectionView,
@@ -49,7 +47,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
4947 self . keepDriverAlive ( driver)
5048 }
5149
52- @MainActor
5350 func test_delegate_didSelect_didDeselect_calls_cellViewModel( ) {
5451 let sections = 2
5552 let cells = 5
@@ -73,7 +70,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
7370 self . keepDriverAlive ( driver)
7471 }
7572
76- @MainActor
7773 func test_delegate_shouldSelect_shouldDeselect_calls_cellViewModel( ) {
7874 let cell1 = FakeTextCellViewModel ( shouldSelect: true , shouldDeselect: true )
7975 let cell2 = FakeTextCellViewModel ( shouldSelect: false , shouldDeselect: false )
@@ -101,7 +97,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
10197 self . keepDriverAlive ( driver)
10298 }
10399
104- @MainActor
105100 func test_delegate_shouldHighlight_calls_cellViewModel( ) {
106101 let cell1 = FakeTextCellViewModel ( shouldHighlight: true )
107102 let cell2 = FakeTextCellViewModel ( shouldHighlight: false )
@@ -123,7 +118,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
123118 self . keepDriverAlive ( driver)
124119 }
125120
126- @MainActor
127121 func test_delegate_contextMenuConfigurationForItemAt_calls_cellViewModel( ) {
128122 let contextMenu = UIContextMenuConfiguration ( )
129123 let cell1 = FakeTextCellViewModel ( contextMenuConfiguration: contextMenu)
@@ -154,7 +148,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
154148 self . keepDriverAlive ( driver)
155149 }
156150
157- @MainActor
158151 func test_delegate_willDisplay_didEndDisplaying_calls_cellViewModel( ) {
159152 let cell = FakeCollectionCell ( )
160153 let sections = 2
@@ -183,7 +176,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
183176 self . keepDriverAlive ( driver)
184177 }
185178
186- @MainActor
187179 func test_delegate_willDisplay_didEndDisplaying_calls_supplementaryViewModel( ) {
188180 let cell = FakeCollectionCell ( )
189181 let view = FakeSupplementaryView ( )
@@ -226,7 +218,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
226218 self . keepDriverAlive ( driver)
227219 }
228220
229- @MainActor
230221 func test_delegate_didHighlight_didUnhighlight_calls_cellViewModel( ) {
231222 let sections = 2
232223 let cells = 5
@@ -254,7 +245,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
254245 self . keepDriverAlive ( driver)
255246 }
256247
257- @MainActor
258248 func test_dataSource_cellForItemAt_calls_cellViewModel_configure( ) async {
259249 let viewController = FakeCollectionViewController ( )
260250 let driver = CollectionViewDriver ( view: viewController. collectionView)
@@ -288,7 +278,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
288278 self . keepDriverAlive ( driver)
289279 }
290280
291- @MainActor
292281 func test_dataSource_cellForItemAt_calls_cellViewModel_configure_usingNibs( ) {
293282 let sections = 2
294283 let cells = 5
@@ -322,7 +311,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
322311 self . keepDriverAlive ( driver)
323312 }
324313
325- @MainActor
326314 func test_dataSource_supplementaryViewAt_calls_supplementaryViewModel_configure( ) async {
327315 let viewController = FakeCollectionViewController ( )
328316 viewController. collectionView. setCollectionViewLayout (
@@ -369,7 +357,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
369357 self . keepDriverAlive ( driver)
370358 }
371359
372- @MainActor
373360 func test_dataSource_supplementaryViewAt_calls_supplementaryViewModel_configure_usingNibs( ) {
374361 let count = 3
375362 let cells = ( 1 ... count) . map { _ in FakeNumberCellViewModel ( ) }
@@ -416,7 +403,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
416403 self . keepDriverAlive ( driver)
417404 }
418405
419- @MainActor
420406 func test_update_callsCompletion_withDefaultOptions( ) {
421407 let driver = CollectionViewDriver ( view: self . collectionView)
422408
@@ -430,7 +416,6 @@ final class TestCollectionViewDriver: UnitTestCase, @unchecked Sendable {
430416 self . waitForExpectations ( )
431417 }
432418
433- @MainActor
434419 func test_update_callsCompletion_withReloadOnReplace( ) {
435420 let driver = CollectionViewDriver (
436421 view: self . collectionView,
0 commit comments