package Ġcom . mat he ws achin . f ate grand autom ata Ċ Ċ import Ġcom . mat he ws achin . f ate grand autom ata . scripts . modules . Game Ċ import Ġcom . mat he ws achin . lib autom ata . Game Area Manager Ċ import Ġcom . mat he ws achin . lib autom ata . I Platform Impl Ċ import Ġcom . mat he ws achin . lib autom ata . Region Ċ import Ġcom . mat he ws achin . lib autom ata . extensions . Transformation Extensions Ċ import Ġio . mock k . every Ċ import Ġio . mock k . mock k Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ Ċ class ĠTransformation Test Ġ{ ĊĠĠĠ Ġfun Ġget Game Area Manager ( window Region : ĠRegion ): ĠGame Area Manager Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmock Platform Impl Ġ= Ġmock k < I Platform Impl >() ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġmock Platform Impl . window Region Ġ} Ġreturns Ġwindow Region ĊĊĠĠĠĠĠĠĠ Ġreturn ĠGame Area Manager ( mock Platform Impl ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġno _ scaling _ when _ window _ region _ is _ same _ as _ script _ dimensions () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġgame Ġ= ĠGame ( mock k ()) ĊĊĠĠĠĠĠĠĠ Ġval Ġgame Area Manager Ġ= Ġget Game Area Manager ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠRegion ( 0 , Ġ 0 , Ġgame . script Size . Width , Ġgame . script Size . Height ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ ĠTransformation Extensions ( game Area Manager ). run Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġoriginal Ġ= ĠRegion ( 1 0 , Ġ 2 0 , Ġ 1 2 0 , Ġ 2 3 0 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġscaled Ġ= Ġoriginal . transform () ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals ( original , Ġscaled ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ