21 lines
489 B
Swift
21 lines
489 B
Swift
|
import Testing
|
||
|
|
||
|
@testable import ColibriLibrary
|
||
|
|
||
|
struct ResourceFileTests {
|
||
|
|
||
|
// MARK: Properties tests
|
||
|
|
||
|
@Test(arguments: zip(ResourceFile.allCases,
|
||
|
[".dockerignore", ".gitignore", "LICENSE", "Package.swift", "README.md"]))
|
||
|
func fileName(for resource: ResourceFile, expects fileName: String) async throws {
|
||
|
// GIVEN
|
||
|
// WHEN
|
||
|
let result = resource.fileName
|
||
|
|
||
|
// THEN
|
||
|
#expect(result == fileName)
|
||
|
}
|
||
|
|
||
|
}
|