blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
638 B
18 lines
638 B
// Copyright © 2018 Stormbird PTE. LTD.
|
|
|
|
import Foundation
|
|
import XCTest
|
|
@testable import AlphaWallet
|
|
|
|
class AssetDefinitionDiskBackingStoreWithOverridesTests: XCTestCase {
|
|
func testBackingStoreWithOverrides() {
|
|
let overridesStore = AssetDefinitionInMemoryBackingStore()
|
|
let store = AssetDefinitionDiskBackingStoreWithOverrides(overridesStore: overridesStore)
|
|
let address = AlphaWallet.Address.make()
|
|
XCTAssertNil(store[address])
|
|
overridesStore[address] = "xml1"
|
|
XCTAssertEqual(store[address], "xml1")
|
|
overridesStore[address] = nil
|
|
XCTAssertNil(store[address])
|
|
}
|
|
}
|
|
|