package Ġcom . example . wallet 2 . ui . dashboard Ċ Ċ import Ġcom . example . wallet 2 . Asset Ċ import Ġcom . example . wallet 2 . R Ċ import Ġjunit . framework . TestCase Ċ Ċ class ĠDashboard ViewModel Test Ġ: ĠTestCase () Ġ{ ĊĊĠĠĠ Ġfun ĠtestGet Total Balance () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval ĠviewModel Ġ= ĠDashboard ViewModel () ĊĊĠĠĠĠĠĠĠ Ġvar Ġassets : Mutable List < Asset > Ġ= ĠArrayList () ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Bitcoin ", Ġ 0 . 5 , Ġ 3 8 0 0 0 . 0 , 1 0 0 0 . 0 , ĠR . drawable . astr _ btc _ symbol , Ġ" BTC ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Ether ", Ġ 3 . 0 , Ġ 2 0 0 0 . 0 , 1 0 0 0 . 0 , ĠR . drawable . astr _ eth _ symbol , Ġ" ETH ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Card ano ", Ġ 5 0 0 . 0 , Ġ 1 . 3 3 , 1 0 0 0 . 0 , ĠR . drawable . astr _ card ano _ symbol ," ADA ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Te ther ", Ġ 5 0 . 0 , Ġ 1 . 0 , 1 0 0 0 . 0 , ĠR . drawable . astr _ te ther _ symbol , Ġ" US DT ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Bin ance ", Ġ 7 . 0 , Ġ 3 0 0 . 0 , 1 0 0 0 . 0 , ĠR . drawable . astr _ bnb _ symbol ," BN B ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" xD ai ", Ġ 1 7 . 0 , Ġ 1 . 0 , 1 0 0 0 . 0 , ĠR . drawable . astr _ xda i _ symbol , Ġ" xD ai ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" Chain Link ", Ġ 3 5 . 0 , Ġ 1 8 . 3 5 , 1 0 0 0 . 0 , ĠR . drawable . astr _ chain link _ symbol ," Link ")) ĊĠĠĠĠĠĠĠ Ġassets . add ( Asset (" AX S ", Ġ 4 0 . 5 , Ġ 3 8 . 4 8 , 1 0 0 0 . 0 , ĠR . drawable . astr _ ax s _ symbol , Ġ" AX S ")) ĊĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠviewModel . getTotal Balance ( assets ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( 8 0 0 0 . 0 , Ġresult ) ĊĠĠĠ Ġ} Ċ }