Kaynağa Gözat

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

Christian Noon 10 yıl önce
ebeveyn
işleme
c129015c83
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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(data, "data should be nil")
         XCTAssertNotNil(error, "error should not be nil")
+
+        XCTAssertNil(download.resumeData, "resume data should be nil")
     }
 
     func testThatCancelledDownloadResponseDataMatchesResumeData() {