From 0ec26dfee9527fe8232e554646bf13bffbc4215b Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Thu, 18 Aug 2022 21:55:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20::=20Restructure=20test=20cases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are now in folders with the same name as the features --- Example/Example.xcodeproj/project.pbxproj | 104 +++++++++++------- ...GradientLoadingBarControllerTestCase.swift | 0 .../test_gradientLoadingBarController.1.png | Bin ...GradientLoadingBarControllerTestCase.swift | 0 ...st_notchGradientLoadingBarController.1.png | Bin ...ndicatorView+AnimateIsHiddenTestCase.swift | 2 +- ...ntActivityIndicatorViewModelTestCase.swift | 7 +- .../GradientLoadingBarViewModelTestCase.swift | 0 ...ientLoadingBarView+ViewModelTestCase.swift | 0 ...hGradientLoadingBarViewModelTestCase.swift | 0 10 files changed, 67 insertions(+), 46 deletions(-) rename Example/ExampleSnapshotTests/{GradientLoadingBarController => GradientLoadingBar}/GradientLoadingBarControllerTestCase.swift (100%) rename Example/ExampleSnapshotTests/{GradientLoadingBarController => GradientLoadingBar}/__Snapshots__/GradientLoadingBarControllerTestCase/test_gradientLoadingBarController.1.png (100%) rename Example/ExampleSnapshotTests/{GradientLoadingBarController => NotchGradientLoadingBar}/NotchGradientLoadingBarControllerTestCase.swift (100%) rename Example/ExampleSnapshotTests/{GradientLoadingBarController => NotchGradientLoadingBar}/__Snapshots__/NotchGradientLoadingBarControllerTestCase/test_notchGradientLoadingBarController.1.png (100%) rename Example/ExampleTests/{Views => GradientActivityIndicatorView}/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift (98%) rename Example/ExampleTests/{ViewModel => GradientActivityIndicatorView}/GradientActivityIndicatorViewModelTestCase.swift (95%) rename Example/ExampleTests/{ViewModel => GradientLoadingBar}/GradientLoadingBarViewModelTestCase.swift (100%) rename Example/ExampleTests/{ViewModel => GradientLoadingBarView}/GradientLoadingBarView+ViewModelTestCase.swift (100%) rename Example/ExampleTests/{ViewModel => NotchGradientLoadingBar}/NotchGradientLoadingBarViewModelTestCase.swift (100%) diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 2bedf65..40168a8 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -24,16 +24,16 @@ DCA9838B27D6A74800D6EA30 /* SwiftUIExampleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCA9838A27D6A74800D6EA30 /* SwiftUIExampleView.swift */; }; F50E4C7E28061655001232D3 /* AdvancedExample.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F50E4C7D28061655001232D3 /* AdvancedExample.storyboard */; }; F50E4C8028061715001232D3 /* AdvancedExampleTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F50E4C7F28061715001232D3 /* AdvancedExampleTableViewController.swift */; }; - F560001227EA2032001913A0 /* GradientLoadingBarView+ViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F560001127EA2032001913A0 /* GradientLoadingBarView+ViewModelTestCase.swift */; }; + F53E34FD28AED042006FB130 /* GradientLoadingBarView+ViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53E34F528AED042006FB130 /* GradientLoadingBarView+ViewModelTestCase.swift */; }; + F53E34FE28AED042006FB130 /* GradientActivityIndicatorViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53E34F728AED042006FB130 /* GradientActivityIndicatorViewModelTestCase.swift */; }; + F53E34FF28AED042006FB130 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53E34F828AED042006FB130 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */; }; + F53E350028AED042006FB130 /* GradientLoadingBarViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53E34FA28AED042006FB130 /* GradientLoadingBarViewModelTestCase.swift */; }; + F53E350128AED042006FB130 /* NotchGradientLoadingBarViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F53E34FC28AED042006FB130 /* NotchGradientLoadingBarViewModelTestCase.swift */; }; F57C83C927DA11580025AA11 /* GradientLoadingBarViewTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F57C83C827DA11580025AA11 /* GradientLoadingBarViewTestCase.swift */; }; F5C7E8882809CDEE00036B8E /* CustomColorsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5C7E8872809CDEE00036B8E /* CustomColorsTableViewCell.swift */; }; F5C7E88A2809CDF600036B8E /* InterfaceBuilderSetupTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5C7E8892809CDF600036B8E /* InterfaceBuilderSetupTableViewCell.swift */; }; F5C7E88C2809CDFD00036B8E /* CustomSuperviewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5C7E88B2809CDFD00036B8E /* CustomSuperviewTableViewCell.swift */; }; F5C7E88F2809CF1200036B8E /* BorderedButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5C7E88E2809CF1200036B8E /* BorderedButton.swift */; }; - F5F5B69C27D94B1800D998B5 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5F5B69727D94B1800D998B5 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */; }; - F5F5B69D27D94B1800D998B5 /* GradientLoadingBarViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5F5B69927D94B1800D998B5 /* GradientLoadingBarViewModelTestCase.swift */; }; - F5F5B69E27D94B1800D998B5 /* GradientActivityIndicatorViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5F5B69A27D94B1800D998B5 /* GradientActivityIndicatorViewModelTestCase.swift */; }; - F5F5B69F27D94B1800D998B5 /* NotchGradientLoadingBarViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5F5B69B27D94B1800D998B5 /* NotchGradientLoadingBarViewModelTestCase.swift */; }; F5FC82FA27DA0BBF00FE1D7D /* GradientActivityIndicatorViewTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5FC82E827DA0BBF00FE1D7D /* GradientActivityIndicatorViewTestCase.swift */; }; F5FC82FE27DA0BBF00FE1D7D /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = F5FC82EF27DA0BBF00FE1D7D /* README.md */; }; F5FC830027DA0BBF00FE1D7D /* GradientLoadingBarControllerTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5FC82F327DA0BBF00FE1D7D /* GradientLoadingBarControllerTestCase.swift */; }; @@ -82,16 +82,16 @@ DCA9838A27D6A74800D6EA30 /* SwiftUIExampleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIExampleView.swift; sourceTree = ""; }; F50E4C7D28061655001232D3 /* AdvancedExample.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = AdvancedExample.storyboard; sourceTree = ""; }; F50E4C7F28061715001232D3 /* AdvancedExampleTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedExampleTableViewController.swift; sourceTree = ""; }; - F560001127EA2032001913A0 /* GradientLoadingBarView+ViewModelTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "GradientLoadingBarView+ViewModelTestCase.swift"; sourceTree = ""; }; + F53E34F528AED042006FB130 /* GradientLoadingBarView+ViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "GradientLoadingBarView+ViewModelTestCase.swift"; sourceTree = ""; }; + F53E34F728AED042006FB130 /* GradientActivityIndicatorViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GradientActivityIndicatorViewModelTestCase.swift; sourceTree = ""; }; + F53E34F828AED042006FB130 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift"; sourceTree = ""; }; + F53E34FA28AED042006FB130 /* GradientLoadingBarViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GradientLoadingBarViewModelTestCase.swift; sourceTree = ""; }; + F53E34FC28AED042006FB130 /* NotchGradientLoadingBarViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NotchGradientLoadingBarViewModelTestCase.swift; sourceTree = ""; }; F57C83C827DA11580025AA11 /* GradientLoadingBarViewTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradientLoadingBarViewTestCase.swift; sourceTree = ""; }; F5C7E8872809CDEE00036B8E /* CustomColorsTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomColorsTableViewCell.swift; sourceTree = ""; }; F5C7E8892809CDF600036B8E /* InterfaceBuilderSetupTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceBuilderSetupTableViewCell.swift; sourceTree = ""; }; F5C7E88B2809CDFD00036B8E /* CustomSuperviewTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomSuperviewTableViewCell.swift; sourceTree = ""; }; F5C7E88E2809CF1200036B8E /* BorderedButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BorderedButton.swift; sourceTree = ""; }; - F5F5B69727D94B1800D998B5 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift"; sourceTree = ""; }; - F5F5B69927D94B1800D998B5 /* GradientLoadingBarViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GradientLoadingBarViewModelTestCase.swift; sourceTree = ""; }; - F5F5B69A27D94B1800D998B5 /* GradientActivityIndicatorViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GradientActivityIndicatorViewModelTestCase.swift; sourceTree = ""; }; - F5F5B69B27D94B1800D998B5 /* NotchGradientLoadingBarViewModelTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NotchGradientLoadingBarViewModelTestCase.swift; sourceTree = ""; }; F5FC82DE27DA0B3200FE1D7D /* ExampleSnapshotTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleSnapshotTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; F5FC82E827DA0BBF00FE1D7D /* GradientActivityIndicatorViewTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GradientActivityIndicatorViewTestCase.swift; sourceTree = ""; }; F5FC82EF27DA0BBF00FE1D7D /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; @@ -196,8 +196,10 @@ DCA9834927D68AD600D6EA30 /* ExampleTests */ = { isa = PBXGroup; children = ( - F5F5B69827D94B1800D998B5 /* ViewModel */, - F5F5B69627D94B1800D998B5 /* Views */, + F53E34F628AED042006FB130 /* GradientActivityIndicatorView */, + F53E34F928AED042006FB130 /* GradientLoadingBar */, + F53E34F428AED042006FB130 /* GradientLoadingBarView */, + F53E34FB28AED042006FB130 /* NotchGradientLoadingBar */, ); path = ExampleTests; sourceTree = ""; @@ -269,6 +271,47 @@ path = NavigationBarExample; sourceTree = ""; }; + F53E34F328AED009006FB130 /* NotchGradientLoadingBar */ = { + isa = PBXGroup; + children = ( + F5FC82F427DA0BBF00FE1D7D /* NotchGradientLoadingBarControllerTestCase.swift */, + ); + path = NotchGradientLoadingBar; + sourceTree = ""; + }; + F53E34F428AED042006FB130 /* GradientLoadingBarView */ = { + isa = PBXGroup; + children = ( + F53E34F528AED042006FB130 /* GradientLoadingBarView+ViewModelTestCase.swift */, + ); + path = GradientLoadingBarView; + sourceTree = ""; + }; + F53E34F628AED042006FB130 /* GradientActivityIndicatorView */ = { + isa = PBXGroup; + children = ( + F53E34F728AED042006FB130 /* GradientActivityIndicatorViewModelTestCase.swift */, + F53E34F828AED042006FB130 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */, + ); + path = GradientActivityIndicatorView; + sourceTree = ""; + }; + F53E34F928AED042006FB130 /* GradientLoadingBar */ = { + isa = PBXGroup; + children = ( + F53E34FA28AED042006FB130 /* GradientLoadingBarViewModelTestCase.swift */, + ); + path = GradientLoadingBar; + sourceTree = ""; + }; + F53E34FB28AED042006FB130 /* NotchGradientLoadingBar */ = { + isa = PBXGroup; + children = ( + F53E34FC28AED042006FB130 /* NotchGradientLoadingBarViewModelTestCase.swift */, + ); + path = NotchGradientLoadingBar; + sourceTree = ""; + }; F5C7E8862809CDE200036B8E /* Cells */ = { isa = PBXGroup; children = ( @@ -287,31 +330,13 @@ path = Views; sourceTree = ""; }; - F5F5B69627D94B1800D998B5 /* Views */ = { - isa = PBXGroup; - children = ( - F5F5B69727D94B1800D998B5 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift */, - ); - path = Views; - sourceTree = ""; - }; - F5F5B69827D94B1800D998B5 /* ViewModel */ = { - isa = PBXGroup; - children = ( - F5F5B69A27D94B1800D998B5 /* GradientActivityIndicatorViewModelTestCase.swift */, - F560001127EA2032001913A0 /* GradientLoadingBarView+ViewModelTestCase.swift */, - F5F5B69927D94B1800D998B5 /* GradientLoadingBarViewModelTestCase.swift */, - F5F5B69B27D94B1800D998B5 /* NotchGradientLoadingBarViewModelTestCase.swift */, - ); - path = ViewModel; - sourceTree = ""; - }; F5FC82DF27DA0B3200FE1D7D /* ExampleSnapshotTests */ = { isa = PBXGroup; children = ( F5FC82E727DA0BBF00FE1D7D /* GradientActivityIndicatorView */, - F5FC82F227DA0BBF00FE1D7D /* GradientLoadingBarController */, + F5FC82F227DA0BBF00FE1D7D /* GradientLoadingBar */, F5FC830727DA0D8400FE1D7D /* GradientLoadingBarView */, + F53E34F328AED009006FB130 /* NotchGradientLoadingBar */, F5FC82EF27DA0BBF00FE1D7D /* README.md */, ); path = ExampleSnapshotTests; @@ -325,13 +350,12 @@ path = GradientActivityIndicatorView; sourceTree = ""; }; - F5FC82F227DA0BBF00FE1D7D /* GradientLoadingBarController */ = { + F5FC82F227DA0BBF00FE1D7D /* GradientLoadingBar */ = { isa = PBXGroup; children = ( F5FC82F327DA0BBF00FE1D7D /* GradientLoadingBarControllerTestCase.swift */, - F5FC82F427DA0BBF00FE1D7D /* NotchGradientLoadingBarControllerTestCase.swift */, ); - path = GradientLoadingBarController; + path = GradientLoadingBar; sourceTree = ""; }; F5FC830727DA0D8400FE1D7D /* GradientLoadingBarView */ = { @@ -642,11 +666,11 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - F560001227EA2032001913A0 /* GradientLoadingBarView+ViewModelTestCase.swift in Sources */, - F5F5B69E27D94B1800D998B5 /* GradientActivityIndicatorViewModelTestCase.swift in Sources */, - F5F5B69C27D94B1800D998B5 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift in Sources */, - F5F5B69F27D94B1800D998B5 /* NotchGradientLoadingBarViewModelTestCase.swift in Sources */, - F5F5B69D27D94B1800D998B5 /* GradientLoadingBarViewModelTestCase.swift in Sources */, + F53E350128AED042006FB130 /* NotchGradientLoadingBarViewModelTestCase.swift in Sources */, + F53E34FD28AED042006FB130 /* GradientLoadingBarView+ViewModelTestCase.swift in Sources */, + F53E350028AED042006FB130 /* GradientLoadingBarViewModelTestCase.swift in Sources */, + F53E34FF28AED042006FB130 /* GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift in Sources */, + F53E34FE28AED042006FB130 /* GradientActivityIndicatorViewModelTestCase.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBar/GradientLoadingBarControllerTestCase.swift similarity index 100% rename from Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift rename to Example/ExampleSnapshotTests/GradientLoadingBar/GradientLoadingBarControllerTestCase.swift diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/__Snapshots__/GradientLoadingBarControllerTestCase/test_gradientLoadingBarController.1.png b/Example/ExampleSnapshotTests/GradientLoadingBar/__Snapshots__/GradientLoadingBarControllerTestCase/test_gradientLoadingBarController.1.png similarity index 100% rename from Example/ExampleSnapshotTests/GradientLoadingBarController/__Snapshots__/GradientLoadingBarControllerTestCase/test_gradientLoadingBarController.1.png rename to Example/ExampleSnapshotTests/GradientLoadingBar/__Snapshots__/GradientLoadingBarControllerTestCase/test_gradientLoadingBarController.1.png diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/NotchGradientLoadingBar/NotchGradientLoadingBarControllerTestCase.swift similarity index 100% rename from Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift rename to Example/ExampleSnapshotTests/NotchGradientLoadingBar/NotchGradientLoadingBarControllerTestCase.swift diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/__Snapshots__/NotchGradientLoadingBarControllerTestCase/test_notchGradientLoadingBarController.1.png b/Example/ExampleSnapshotTests/NotchGradientLoadingBar/__Snapshots__/NotchGradientLoadingBarControllerTestCase/test_notchGradientLoadingBarController.1.png similarity index 100% rename from Example/ExampleSnapshotTests/GradientLoadingBarController/__Snapshots__/NotchGradientLoadingBarControllerTestCase/test_notchGradientLoadingBarController.1.png rename to Example/ExampleSnapshotTests/NotchGradientLoadingBar/__Snapshots__/NotchGradientLoadingBarControllerTestCase/test_notchGradientLoadingBarController.1.png diff --git a/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift b/Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift similarity index 98% rename from Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift rename to Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift index 5aae393..fe5fed9 100644 --- a/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift +++ b/Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift @@ -11,7 +11,7 @@ import XCTest @testable import GradientLoadingBar // swiftlint:disable:next type_name -final class GradientActivityIndicatorViewAnimateIsHiddenTestCase: XCTestCase { +final class GradientActivityIndicatorView_AnimateIsHiddenTestCase: XCTestCase { // MARK: - Private properties diff --git a/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift b/Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorViewModelTestCase.swift similarity index 95% rename from Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift rename to Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorViewModelTestCase.swift index d1f074f..d9f81f9 100644 --- a/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift +++ b/Example/ExampleTests/GradientActivityIndicatorView/GradientActivityIndicatorViewModelTestCase.swift @@ -88,10 +88,7 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase { } // Then - let expectedSizeUpdate = - GradientActivityIndicatorViewModel.SizeUpdate(frame: CGRect(x: 0, y: 0, width: size.width * 3, height: size.height), - fromValue: size.width * -2) - + let expectedSizeUpdate = GradientActivityIndicatorViewModel.SizeUpdate(bounds: bounds) XCTAssertEqual(receivedSizeUpdate, expectedSizeUpdate) } @@ -131,7 +128,7 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase { // When withExtendedLifetime(disposable) { - viewModel.bounds = CGRect(origin: .zero, size: .zero) + viewModel.bounds = bounds } // Then diff --git a/Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift b/Example/ExampleTests/GradientLoadingBar/GradientLoadingBarViewModelTestCase.swift similarity index 100% rename from Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift rename to Example/ExampleTests/GradientLoadingBar/GradientLoadingBarViewModelTestCase.swift diff --git a/Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift b/Example/ExampleTests/GradientLoadingBarView/GradientLoadingBarView+ViewModelTestCase.swift similarity index 100% rename from Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift rename to Example/ExampleTests/GradientLoadingBarView/GradientLoadingBarView+ViewModelTestCase.swift diff --git a/Example/ExampleTests/ViewModel/NotchGradientLoadingBarViewModelTestCase.swift b/Example/ExampleTests/NotchGradientLoadingBar/NotchGradientLoadingBarViewModelTestCase.swift similarity index 100% rename from Example/ExampleTests/ViewModel/NotchGradientLoadingBarViewModelTestCase.swift rename to Example/ExampleTests/NotchGradientLoadingBar/NotchGradientLoadingBarViewModelTestCase.swift