package Ġcom . i will te ach you kotlin . expense manager . domain . util Ċ Ċ import Ġorg . junit . Assert .* Ċ import Ġorg . junit . Test Ċ Ċ class ĠResult Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` when Ġresult Ġis Ġcreated ĠâĢĵ Ġit Ġis Ġnot Ġresolved Ġyet `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠResult < String >() ĊĠĠĠĠĠĠĠ ĠassertFalse (" result Ġis Ġnot Ġresolved ", Ġresult . is Resolved ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` when Ġresult Ġis Ġresolved ĠâĢĵ Ġit Ġis Ġresolved `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠResult < String >() ĊĠĠĠĠĠĠĠ Ġresult . resolve (" hello Ġworld ") ĊĠĠĠĠĠĠĠ ĠassertTrue (" result Ġis Ġresolved ", Ġresult . is Resolved ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` when Ġresult Ġis Ġresolved ĠâĢĵ ĠonSuccess Ġis Ġcalled `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠResult < String >() ĊĊĠĠĠĠĠĠĠ Ġvar ĠonSuccess Called With Ġ= Ġ"" ĊĠĠĠĠĠĠĠ Ġresult . on Success Ġ{ ĠonSuccess Called With Ġ= Ġit Ġ} ĊĊĠĠĠĠĠĠĠ Ġresult . resolve (" hello Ġworld ") ĊĊĠĠĠĠĠĠĠ ĠassertEquals (" hello Ġworld ", ĠonSuccess Called With ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` when Ġresult Ġis Ġresolved Ġbefore ĠonSuccess Ġis Ġset `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠResult < String >() ĊĠĠĠĠĠĠĠ Ġresult . resolve (" some Ġvalue ") ĊĊĠĠĠĠĠĠĠ Ġvar ĠonSuccess Called With Ġ= Ġ"" ĊĠĠĠĠĠĠĠ Ġresult . on Success Ġ{ ĠonSuccess Called With Ġ= Ġit Ġ} ĊĊĠĠĠĠĠĠĠ ĠassertEquals (" some Ġvalue ", ĠonSuccess Called With ) ĊĠĠĠ Ġ} Ċ }