From f7dee25e45e2bdeed617c7d6dd4ec8db129427cc Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Sun, 23 Dec 2018 13:46:43 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20::=20Remove=20unnecessary?= =?UTF-8?q?=20test-case=20(initializer=20is=20auto-generated)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project.pbxproj | 12 --------- .../Helpers/Structs/DurationsTestCase.swift | 25 ------------------- 2 files changed, 37 deletions(-) delete mode 100644 Example/Tests/Helpers/Structs/DurationsTestCase.swift diff --git a/Example/GradientLoadingBar.xcodeproj/project.pbxproj b/Example/GradientLoadingBar.xcodeproj/project.pbxproj index 0577f34..c01d04f 100644 --- a/Example/GradientLoadingBar.xcodeproj/project.pbxproj +++ b/Example/GradientLoadingBar.xcodeproj/project.pbxproj @@ -17,7 +17,6 @@ 972CFBCC2138849A006F14C9 /* SafeAreaExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 972CFBCB2138849A006F14C9 /* SafeAreaExampleViewController.swift */; }; 97464E6721372BCD0097183A /* AdvancedExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97464E6621372BCD0097183A /* AdvancedExampleViewController.swift */; }; 97464E6921372C010097183A /* NavigationBarExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97464E6821372C010097183A /* NavigationBarExampleViewController.swift */; }; - 974E3F1C1FF2AA4400C96A59 /* DurationsTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 974E3F161FF2A85600C96A59 /* DurationsTestCase.swift */; }; 974E3F221FF2DEAA00C96A59 /* GradientLoadingBarViewModelTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 974E3F211FF2DEAA00C96A59 /* GradientLoadingBarViewModelTestCase.swift */; }; 97B6F5FE2143F31F008CFEA5 /* UIColor+CustomColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97B6F5FA2143F31F008CFEA5 /* UIColor+CustomColors.swift */; }; 97B6F5FF2143F31F008CFEA5 /* BlueFilledButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97B6F5FC2143F31F008CFEA5 /* BlueFilledButton.swift */; }; @@ -54,7 +53,6 @@ 972CFBCB2138849A006F14C9 /* SafeAreaExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafeAreaExampleViewController.swift; sourceTree = ""; }; 97464E6621372BCD0097183A /* AdvancedExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedExampleViewController.swift; sourceTree = ""; }; 97464E6821372C010097183A /* NavigationBarExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationBarExampleViewController.swift; sourceTree = ""; }; - 974E3F161FF2A85600C96A59 /* DurationsTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DurationsTestCase.swift; sourceTree = ""; }; 974E3F211FF2DEAA00C96A59 /* GradientLoadingBarViewModelTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradientLoadingBarViewModelTestCase.swift; sourceTree = ""; }; 97B6F5FA2143F31F008CFEA5 /* UIColor+CustomColors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+CustomColors.swift"; sourceTree = ""; }; 97B6F5FC2143F31F008CFEA5 /* BlueFilledButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BlueFilledButton.swift; sourceTree = ""; }; @@ -165,7 +163,6 @@ isa = PBXGroup; children = ( 972B29D31F7F88F6009D9F89 /* Extensions */, - 974E3F151FF2A85600C96A59 /* Structs */, ); path = Helpers; sourceTree = ""; @@ -178,14 +175,6 @@ path = Extensions; sourceTree = ""; }; - 974E3F151FF2A85600C96A59 /* Structs */ = { - isa = PBXGroup; - children = ( - 974E3F161FF2A85600C96A59 /* DurationsTestCase.swift */, - ); - path = Structs; - sourceTree = ""; - }; 974E3F201FF2DE7A00C96A59 /* ViewModel */ = { isa = PBXGroup; children = ( @@ -472,7 +461,6 @@ buildActionMask = 2147483647; files = ( 974E3F221FF2DEAA00C96A59 /* GradientLoadingBarViewModelTestCase.swift in Sources */, - 974E3F1C1FF2AA4400C96A59 /* DurationsTestCase.swift in Sources */, 97FA595B213184DF00CCD446 /* Observable+ObserveDistinctTestCase.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Example/Tests/Helpers/Structs/DurationsTestCase.swift b/Example/Tests/Helpers/Structs/DurationsTestCase.swift deleted file mode 100644 index 86b6267..0000000 --- a/Example/Tests/Helpers/Structs/DurationsTestCase.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// DurationsTestCase.swift -// GradientLoadingBar_Example -// -// Created by Felix Mau on 10/30/17. -// Copyright © 2017 Felix Mau. All rights reserved. -// - -import XCTest - -@testable import GradientLoadingBar - -class DurationsTestCase: XCTestCase { - func testInitializer() { - let fadeIn = 0.1 - let fadeOut = 0.2 - let progress = 0.3 - - let animationDurations = Durations(fadeIn: fadeIn, fadeOut: fadeOut, progress: progress) - - XCTAssertEqual(animationDurations.fadeIn, fadeIn) - XCTAssertEqual(animationDurations.fadeOut, fadeOut) - XCTAssertEqual(animationDurations.progress, progress) - } -}