public void TestConstructorWithNonexistAssetId() { var snapshot = TestBlockchain.GetTestSnapshot(); Action action = () => { var descriptor = new Vauth.Wallets.AssetDescriptor(snapshot, ProtocolSettings.Default, UInt160.Parse("01ff00ff00ff00ff00ff00ff00ff00ff00ff00a4")); }; action.Should().Throw <ArgumentException>(); }
public void Check_Vauth() { var snapshot = TestBlockchain.GetTestSnapshot(); var descriptor = new Vauth.Wallets.AssetDescriptor(snapshot, ProtocolSettings.Default, NativeContract.Vauth.Hash); descriptor.AssetId.Should().Be(NativeContract.Vauth.Hash); descriptor.AssetName.Should().Be(nameof(VauthToken)); descriptor.ToString().Should().Be(nameof(VauthToken)); descriptor.Symbol.Should().Be("Vauth"); descriptor.Decimals.Should().Be(0); }