Defined the ResourceFile enumeration in the library target and also, implemented its "fileName" computed property.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user