public void TestReset() { using (GetAllAssetsAddressesDataList assets = keokenManager_.GetAllAssetAddresses()) { Assert.Equal <UInt64>(3, assets.Count); } fixture_.State.Reset(); using (GetAllAssetsAddressesDataList assets = keokenManager_.GetAllAssetAddresses()) { Assert.Equal <UInt64>(0, assets.Count); } }
public void TestGetAllAssetAddresses() { using (GetAllAssetsAddressesDataList assets = keokenManager_.GetAllAssetAddresses()) { Assert.Equal <UInt64>(3, assets.Count); foreach (GetAllAssetsAddressesData asset in assets) { if (asset.AssetId == 1) { Assert.Equal(1000000, asset.Amount); Assert.Equal("Bitprim", asset.AssetName); Assert.Equal("16TGufqQ9FPnEbixbD4ZjVabaP455roE6t", asset.AssetCreator.Encoded); Assert.Equal("16TGufqQ9FPnEbixbD4ZjVabaP455roE6t", asset.AmountOwner.Encoded); } else { if (asset.AmountOwner.Encoded == "16TGufqQ9FPnEbixbD4ZjVabaP455roE6t") { Assert.Equal <UInt32>(2, asset.AssetId); Assert.Equal(90, asset.Amount); Assert.Equal("HanchonCoin", asset.AssetName); Assert.Equal("16TGufqQ9FPnEbixbD4ZjVabaP455roE6t", asset.AssetCreator.Encoded); } else { Assert.Equal <UInt32>(2, asset.AssetId); Assert.Equal(10, asset.Amount); Assert.Equal("HanchonCoin", asset.AssetName); Assert.Equal("16TGufqQ9FPnEbixbD4ZjVabaP455roE6t", asset.AssetCreator.Encoded); Assert.Equal("18csrhcoVBvjMpuhLpna726CeYCXe1ZxiH", asset.AmountOwner.Encoded); } } } } }