Skip to content

Commit

Permalink
add logs in AudioControllerTests
Browse files Browse the repository at this point in the history
  • Loading branch information
moldovaniosif committed Oct 17, 2018
1 parent 2e6c76f commit ab9683b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/ControllersTest/AudioControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class AdioControllerTests: XCTestCase {
XCTAssertNotNil(audioController.audioPlayer)
XCTAssertNotNil(audioController.playingCell)
XCTAssertNotNil(audioController.playingMessage)
XCTAssertTrue(audioController.audioPlayer?.isPlaying ?? false)
XCTAssertTrue(audioCell.playButton.isSelected)
XCTAssertTrue(audioController.audioPlayer?.isPlaying ?? false, "Audio player should be playing")
XCTAssertTrue(audioCell.playButton.isSelected, "Audio cell play button should be in selected state")
}

func testStopSound() {
Expand Down Expand Up @@ -100,8 +100,8 @@ class AdioControllerTests: XCTestCase {
XCTAssertNotNil(audioController.audioPlayer)
XCTAssertNotNil(audioController.playingCell)
XCTAssertNotNil(audioController.playingMessage)
XCTAssertTrue(audioController.audioPlayer?.isPlaying ?? false)
XCTAssertTrue(audioCell.playButton.isSelected)
XCTAssertTrue(audioController.audioPlayer?.isPlaying ?? false, "Audio player should be playing")
XCTAssertTrue(audioCell.playButton.isSelected, "Audio cell play button should be in selected state")
}

func testConfigureAudioCellWhileIsCurrentlyPlaying() {
Expand All @@ -111,7 +111,7 @@ class AdioControllerTests: XCTestCase {
audioController.configureAudioCell(audioCell, message: audioMessage)
XCTAssertEqual(audioCell.durationLabel.text, "0:00")
XCTAssertEqual(audioCell.progressView.progress, 0.0)
XCTAssertTrue(audioCell.playButton.isSelected)
XCTAssertTrue(audioCell.playButton.isSelected, "Audio cell play button should be in selected state")
}

func testConfigureAudioCellWhenOtherCellIsPlaying() {
Expand Down

0 comments on commit ab9683b

Please sign in to comment.