diff --git a/DXFeedFramework.xcodeproj/project.pbxproj b/DXFeedFramework.xcodeproj/project.pbxproj index 2eff2acd2..391048935 100644 --- a/DXFeedFramework.xcodeproj/project.pbxproj +++ b/DXFeedFramework.xcodeproj/project.pbxproj @@ -165,7 +165,7 @@ 64963B6A2A8E545C001E40F7 /* IEventType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64963B692A8E545C001E40F7 /* IEventType.swift */; }; 6498E6B22AB1D41A0093A065 /* DXSchedule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6B12AB1D41A0093A065 /* DXSchedule.swift */; }; 6498E6B52AB1D4480093A065 /* NativeSchedule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6B42AB1D4480093A065 /* NativeSchedule.swift */; }; - 6498E6B72AB1DACE0093A065 /* DXScheduleTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6B62AB1DACE0093A065 /* DXScheduleTest.swift */; }; + 6498E6B72AB1DACE0093A065 /* ScheduleTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6B62AB1DACE0093A065 /* ScheduleTest.swift */; }; 6498E6B92AB1DFDB0093A065 /* ScheduleDay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6B82AB1DFDB0093A065 /* ScheduleDay.swift */; }; 6498E6BD2AB1E0510093A065 /* ScheduleSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6BC2AB1E0510093A065 /* ScheduleSession.swift */; }; 6498E6C42AB20B860093A065 /* ScheduleSessionType+Ext.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6498E6C32AB20B860093A065 /* ScheduleSessionType+Ext.swift */; }; @@ -515,7 +515,7 @@ 64963B692A8E545C001E40F7 /* IEventType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IEventType.swift; sourceTree = ""; }; 6498E6B12AB1D41A0093A065 /* DXSchedule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXSchedule.swift; sourceTree = ""; }; 6498E6B42AB1D4480093A065 /* NativeSchedule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeSchedule.swift; sourceTree = ""; }; - 6498E6B62AB1DACE0093A065 /* DXScheduleTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXScheduleTest.swift; sourceTree = ""; }; + 6498E6B62AB1DACE0093A065 /* ScheduleTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleTest.swift; sourceTree = ""; }; 6498E6B82AB1DFDB0093A065 /* ScheduleDay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleDay.swift; sourceTree = ""; }; 6498E6BC2AB1E0510093A065 /* ScheduleSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleSession.swift; sourceTree = ""; }; 6498E6C32AB20B860093A065 /* ScheduleSessionType+Ext.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ScheduleSessionType+Ext.swift"; sourceTree = ""; }; @@ -1121,7 +1121,7 @@ 64278C6B2A602CA20074B5AA /* CandleTests.swift */, 6447A5EC2A8FCC2200739CCF /* UtilsTest.swift */, 64ECD67E2A9CF4CB00B36935 /* IPFTests.swift */, - 6498E6B62AB1DACE0093A065 /* DXScheduleTest.swift */, + 6498E6B62AB1DACE0093A065 /* ScheduleTest.swift */, ); path = DXFeedFrameworkTests; sourceTree = ""; @@ -1833,7 +1833,7 @@ 64ACBCCF2A27851C00032C53 /* FeedTest.swift in Sources */, 6447A5ED2A8FCC2200739CCF /* UtilsTest.swift in Sources */, 64278C6C2A602CA20074B5AA /* CandleTests.swift in Sources */, - 6498E6B72AB1DACE0093A065 /* DXScheduleTest.swift in Sources */, + 6498E6B72AB1DACE0093A065 /* ScheduleTest.swift in Sources */, 6426C8932A531AB500236784 /* ThreadsTest.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/DXFeedFrameworkTests/DXScheduleTest.swift b/DXFeedFrameworkTests/ScheduleTest.swift similarity index 68% rename from DXFeedFrameworkTests/DXScheduleTest.swift rename to DXFeedFrameworkTests/ScheduleTest.swift index 25bccaacc..854003011 100644 --- a/DXFeedFrameworkTests/DXScheduleTest.swift +++ b/DXFeedFrameworkTests/ScheduleTest.swift @@ -1,5 +1,5 @@ // -// DXScheduleTest.swift +// ScheduleTest.swift // DXFeedFrameworkTests // // Created by Aleksey Kosylo on 13.09.23. @@ -8,7 +8,7 @@ import XCTest @testable import DXFeedFramework -final class DXScheduleTest: XCTestCase { +final class ScheduleTest: XCTestCase { override func setUpWithError() throws { @@ -19,25 +19,25 @@ final class DXScheduleTest: XCTestCase { // Put teardown code here. This method is called after the invocation of each test method in the class. } -// func testCorrectScheduleInit() throws { -// do { -// _ = try DXSchedule(scheduleDefinition: "NewYorkETH()") -// } catch { -// XCTAssert(false, "Error \(error)") -// } -// } -// -// func testGetScheduleDay() throws { -// do { -// let schedule = try DXSchedule(scheduleDefinition: "NewYorkETH()") -// let name = try schedule.getName() -// XCTAssert(name == "US ETH") -// let timeZone = try schedule.getTimeZone() -// XCTAssert(timeZone == "Eastern Standard Time") -// } catch { -// XCTAssert(false, "Error \(error)") -// } -// } + func testCorrectScheduleInit() throws { + do { + _ = try DXSchedule(scheduleDefinition: "NewYorkETH()") + } catch { + XCTAssert(false, "Error \(error)") + } + } + + func testGetScheduleDay() throws { + do { + let schedule = try DXSchedule(scheduleDefinition: "NewYorkETH()") + let name = try schedule.getName() + XCTAssert(name == "US ETH") + let timeZone = try schedule.getTimeZone() + XCTAssert(timeZone == "Eastern Standard Time") + } catch { + XCTAssert(false, "Error \(error)") + } + } func testGetCorrectScheduleDay() throws { do { @@ -79,13 +79,13 @@ final class DXScheduleTest: XCTestCase { // XCTAssert(try schedule.getTimeZone() == "America/New_York") } -// func testWrongScheduleInit() throws { -// do { -// _ = try DXSchedule(scheduleDefinition: "qwerty1234567") -// XCTAssert(false, "Schould be ") -// } catch { -// print("Error \(error)") -// } -// } + func testWrongScheduleInit() throws { + do { + _ = try DXSchedule(scheduleDefinition: "qwerty1234567") + XCTAssert(false) + } catch { + print("Error \(error)") + } + } }