package Ġcom . github . must af ao zh an . ccc . client . mapper Ċ Ċ import Ġcom . github . must af ao zh an . ccc . common . model . Currency Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertEquals Ċ Ċ class ĠCurrency Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġcurrency Dollar Ġ= ĠCurrency (" Dollar ", Ġ" American ĠD ollar ", Ġ"$ ", Ġ 1 2 3 . 1 2 3 , Ġtrue ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto UI Model () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcurrency Dollar UI Model Ġ= Ġcurrency Dollar . to UI Model () ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( currency Dollar . name , Ġcurrency Dollar UI Model . name ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( currency Dollar . long Name , Ġcurrency Dollar UI Model . long Name ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( currency Dollar . symbol , Ġcurrency Dollar UI Model . symbol ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( currency Dollar . rate , Ġcurrency Dollar UI Model . rate ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( currency Dollar . isActive , Ġcurrency Dollar UI Model . isActive ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto UI Model List () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcurrency E uro Ġ= ĠCurrency (" E uro ", Ġ" E uro ", Ġ"", Ġ 3 2 1 . 3 2 1 , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġval Ġcurrency List Ġ= ĠlistOf ( currency Dollar , Ġcurrency E uro ) ĊĊĠĠĠĠĠĠĠ Ġval Ġcurrency UI Model List Ġ= Ġcurrency List . to UI Model List () ĊĊĠĠĠĠĠĠĠ Ġcurrency List . zip ( currency UI Model List ) Ġ{ Ġfirst , Ġsecond Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( first . name , Ġsecond . name ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( first . long Name , Ġsecond . long Name ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( first . symbol , Ġsecond . symbol ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( first . rate , Ġsecond . rate ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( first . isActive , Ġsecond . isActive ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ