An advanced Ethereum/EVM mobile wallet
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.
 
 
 
alpha-wallet-ios/AlphaWalletTests/TokenScriptClient/AssetDefinitionDiskBackingS...

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])
}
}