Skip to content

Commit

Permalink
rename test class
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Sep 15, 2023
1 parent 42e9b4a commit 6ccc7df
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions DXFeedFramework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -515,7 +515,7 @@
64963B692A8E545C001E40F7 /* IEventType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IEventType.swift; sourceTree = "<group>"; };
6498E6B12AB1D41A0093A065 /* DXSchedule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXSchedule.swift; sourceTree = "<group>"; };
6498E6B42AB1D4480093A065 /* NativeSchedule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeSchedule.swift; sourceTree = "<group>"; };
6498E6B62AB1DACE0093A065 /* DXScheduleTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXScheduleTest.swift; sourceTree = "<group>"; };
6498E6B62AB1DACE0093A065 /* ScheduleTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleTest.swift; sourceTree = "<group>"; };
6498E6B82AB1DFDB0093A065 /* ScheduleDay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleDay.swift; sourceTree = "<group>"; };
6498E6BC2AB1E0510093A065 /* ScheduleSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleSession.swift; sourceTree = "<group>"; };
6498E6C32AB20B860093A065 /* ScheduleSessionType+Ext.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ScheduleSessionType+Ext.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1121,7 +1121,7 @@
64278C6B2A602CA20074B5AA /* CandleTests.swift */,
6447A5EC2A8FCC2200739CCF /* UtilsTest.swift */,
64ECD67E2A9CF4CB00B36935 /* IPFTests.swift */,
6498E6B62AB1DACE0093A065 /* DXScheduleTest.swift */,
6498E6B62AB1DACE0093A065 /* ScheduleTest.swift */,
);
path = DXFeedFrameworkTests;
sourceTree = "<group>";
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// DXScheduleTest.swift
// ScheduleTest.swift
// DXFeedFrameworkTests
//
// Created by Aleksey Kosylo on 13.09.23.
Expand All @@ -8,7 +8,7 @@
import XCTest
@testable import DXFeedFramework

final class DXScheduleTest: XCTestCase {
final class ScheduleTest: XCTestCase {

override func setUpWithError() throws {

Expand All @@ -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 {
Expand Down Expand Up @@ -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)")
}
}

}

0 comments on commit 6ccc7df

Please sign in to comment.