Skip to content

Commit 0bfa757

Browse files
author
Christian Elies
committed
test(): implemented remote image service error test
1 parent d25504e commit 0bfa757

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// RemoteImageServiceErrorTests.swift
3+
// RemoteImageTests
4+
//
5+
// Created by Christian Elies on 14.12.19.
6+
//
7+
8+
@testable import RemoteImage
9+
import XCTest
10+
11+
final class RemoteImageServiceErrorTests: XCTestCase {
12+
func testCouldNotCreateImageDescription() {
13+
let description = RemoteImageServiceError.couldNotCreateImage.errorDescription
14+
let expectedDescription = "Could not create image from received data"
15+
XCTAssertEqual(description, expectedDescription)
16+
}
17+
}

0 commit comments

Comments
 (0)