forked from mac-cain13/R.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96012a7
commit 26262e9
Showing
12 changed files
with
251 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Examples/RswiftAppWithStaticFrameworks/AppTests/AppTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// AppTests.swift | ||
// AppTests | ||
// | ||
// Created by Tom Lokhorst on 2022-11-10. | ||
// | ||
|
||
import XCTest | ||
@testable import Foo | ||
@testable import Bar | ||
|
||
final class AppTests: XCTestCase { | ||
|
||
func testNotNil() throws { | ||
let fooBundle = Bundle.main.path(forResource: "Foo", ofType: "bundle").flatMap(Bundle.init(path:))! | ||
let barBundle = Bundle.main.path(forResource: "Bar", ofType: "bundle").flatMap(Bundle.init(path:))! | ||
|
||
let fooR = Foo._R(bundle: fooBundle) | ||
let barR = Bar._R(bundle: barBundle) | ||
|
||
XCTAssertNotNil(UIImage(resource: fooR.image.user)) | ||
XCTAssertNotNil(UIImage(resource: barR.image.colorsJpg)) | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.