From a67df03d6306980a140f0752d8aad418c9ecbc2f Mon Sep 17 00:00:00 2001 From: Tangem Date: Sat, 10 Sep 2022 13:31:45 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../domain/features/BlockchainNetworkIdTests.kt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt b/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt index 9982a61c80..ff5079bdf4 100644 --- a/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt +++ b/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt @@ -6,24 +6,18 @@ import com.tangem.domain.common.extensions.fromNetworkId import com.tangem.domain.common.extensions.toNetworkId import org.junit.Test -/** - * Example local unit test, which will execute on the development machine (host). - * - * See [testing documentation](http://d.android.com/tools/testing). - */ class BlockchainNetworkIdTests { @Test fun checkAppropriateImplementationForNetworkIds() { val unimplementedIds = Blockchain.values() .toMutableList() - .apply { remove(Blockchain.Unknown) }.map { - val networkId = it.toNetworkId() - networkId to Blockchain.fromNetworkId(networkId) - }.filter { it.second == null } + .apply { remove(Blockchain.Unknown) } + .map { it to Blockchain.fromNetworkId(it.toNetworkId()) } + .filter { it.second == null } if (unimplementedIds.isEmpty()) return - val message = unimplementedIds.joinToString("\n") { it.first } + val message = unimplementedIds.joinToString("\n") { it.first.fullName } Truth.assert_().withMessage(message).fail() } } \ No newline at end of file