瀏覽代碼

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

Christian Noon 10 年之前
父節點
當前提交
c129015c83
共有 1 個文件被更改,包括 2 次插入0 次删除
  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() {