From c020867bcef6cd8bced6f581050a2a644d75c11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wei=C3=9F?= Date: Wed, 5 May 2021 14:58:03 +0200 Subject: [PATCH] Pouring foundation for SecondsFormatterTests. --- Cog.xcodeproj/project.pbxproj | 2 ++ SecondsFormatterTests/SecondsFormatterTests.m | 27 ++++++++++++------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/Cog.xcodeproj/project.pbxproj b/Cog.xcodeproj/project.pbxproj index 4fef67de2..0c926070e 100644 --- a/Cog.xcodeproj/project.pbxproj +++ b/Cog.xcodeproj/project.pbxproj @@ -93,6 +93,7 @@ 3D42D1302641739C002A170C /* MonospacedDigitTextFieldCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D42D12F2641739C002A170C /* MonospacedDigitTextFieldCell.m */; }; 3D42D1B82642BB62002A170C /* CogTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D42D1B72642BB62002A170C /* CogTests.m */; }; 3D42D2772642BEA0002A170C /* SecondsFormatterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D42D2762642BEA0002A170C /* SecondsFormatterTests.m */; }; + 3D42D2C12642BF5D002A170C /* SecondsFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 17D1B1670F632ABB00694C57 /* SecondsFormatter.m */; }; 5604D45B0D60349B004F5C5D /* SpotlightWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5604D4590D60349B004F5C5D /* SpotlightWindowController.m */; }; 5604D4F60D60726E004F5C5D /* SpotlightPlaylistEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = 5604D4F50D60726E004F5C5D /* SpotlightPlaylistEntry.m */; }; 56462EAF0D6341F6000AB68C /* SpotlightTransformers.m in Sources */ = {isa = PBXBuildFile; fileRef = 56462EAE0D6341F6000AB68C /* SpotlightTransformers.m */; }; @@ -2323,6 +2324,7 @@ buildActionMask = 2147483647; files = ( 3D42D2772642BEA0002A170C /* SecondsFormatterTests.m in Sources */, + 3D42D2C12642BF5D002A170C /* SecondsFormatter.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SecondsFormatterTests/SecondsFormatterTests.m b/SecondsFormatterTests/SecondsFormatterTests.m index 93cfaf53e..63fe1330b 100644 --- a/SecondsFormatterTests/SecondsFormatterTests.m +++ b/SecondsFormatterTests/SecondsFormatterTests.m @@ -7,18 +7,24 @@ #import +#import "SecondsFormatter.h" + @interface SecondsFormatterTests : XCTestCase @end @implementation SecondsFormatterTests -- (void)setUp { - // Put setup code here. This method is called before the invocation of each test method in the class. +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. } -- (void)tearDown { - // Put teardown code here. This method is called after the invocation of each test method in the class. +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; } - (void)testExample { @@ -26,11 +32,14 @@ // Use XCTAssert and related functions to verify your tests produce the correct results. } -- (void)testPerformanceExample { - // This is an example of a performance test case. - [self measureBlock:^{ - // Put the code you want to measure the time of here. - }]; +#if 0 +- (void)testPerformanceExample +{ + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; } +#endif @end