@@ -10,43 +10,43 @@ import XCTest
1010import YCoreUI
1111
1212final class ImageAssetTests : XCTestCase {
13-
14- func testBundle( ) {
13+ func test_bundle( ) {
1514 XCTAssertEqual ( Flags . bundle, . module)
1615 XCTAssertEqual ( Icons . bundle, . module)
1716 }
1817
19- func testNamespace ( ) {
18+ func test_namespace ( ) {
2019 XCTAssertNil ( Flags . namespace)
2120 XCTAssertEqual ( Icons . namespace, " Icons " )
2221 XCTAssertNil ( Missing . namespace)
2322 }
2423
25- func testFallbackImage ( ) {
24+ func test_fallbackImage ( ) {
2625 XCTAssertNotNil ( Flags . fallbackImage)
2726 XCTAssertNotNil ( Icons . fallbackImage)
2827 XCTAssertEqual ( Missing . fallbackImage, UIImage ( systemName: " x.squareroot " ) )
2928 }
30-
31- func testLoadImageWithNameSpace ( ) {
29+
30+ func test_loadImageWithNameSpace ( ) {
3231 Icons . allCases. forEach {
3332 XCTAssertNotNil ( $0. loadImage ( ) )
3433 }
3534 }
3635
37- func testLoadImageWithoutNameSpace ( ) {
36+ func test_loadImageWithoutNameSpace ( ) {
3837 Flags . allCases. forEach {
3938 XCTAssertNotNil ( $0. loadImage ( ) )
4039 }
4140 }
4241
4342 func test_imageAsset_defaultValues( ) {
4443 XCTAssertEqual ( DefaultImageAssets . bundle, . main)
44+ XCTAssertEqual ( DefaultImageAssets . defaultCase. image. pngData ( ) , DefaultImageAssets . fallbackImage. pngData ( ) )
4545 }
4646}
4747
4848enum DefaultImageAssets : String , CaseIterable , ImageAsset {
49- case plus
49+ case defaultCase
5050}
5151
5252extension ImageAssetTests {
0 commit comments