Browse Source

Added an assertion to verify the resume data is nil when expected.

Christian Noon 10 years ago
parent
commit
c129015c83
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Tests/DownloadTests.swift

+ 2 - 0
Tests/DownloadTests.swift

@@ -253,6 +253,8 @@ class DownloadResumeDataTestCase: BaseTestCase {
         XCTAssertNil(response, "response should be nil")
         XCTAssertNil(response, "response should be nil")
         XCTAssertNil(data, "data should be nil")
         XCTAssertNil(data, "data should be nil")
         XCTAssertNotNil(error, "error should not be nil")
         XCTAssertNotNil(error, "error should not be nil")
+
+        XCTAssertNil(download.resumeData, "resume data should be nil")
     }
     }
 
 
     func testThatCancelledDownloadResponseDataMatchesResumeData() {
     func testThatCancelledDownloadResponseDataMatchesResumeData() {