package Ġintegration Tests Ċ Ċ import Ġbase . integration Tests .* Ċ import Ġcom . intellij . x debugger . X Debugger Manager Ċ import Ġcom . intellij . x debugger . breakpoints . X Line Breakpoint Ċ import Ġcom . jetbrains . r ider . debugger . breakpoint . DotNet Line Breakpoint Properties Ċ import Ġcom . jetbrains . r ider . plugins . unity . debugger . breakpoints . Unity Pause point Breakpoint Type Ċ import Ġcom . jetbrains . r ider . plugins . unity . debugger . breakpoints . convertTo Line Breakpoint Ċ import Ġcom . jetbrains . r ider . test . annotations . Test Environment Ċ import Ġcom . jetbrains . r ider . test . enums . Platform Type Ċ import Ġcom . jetbrains . r ider . test . script ing Api .* Ċ import Ġorg . testng . annotations . After Method Ċ import Ġorg . testng . annotations . Test Ċ import Ġjava . io . File Ċ Ċ @ Test Environment ( platform Ġ= Ġ[ Platform Type . WINDOWS , ĠPlatform Type . MAC _ OS ]) Ċ class ĠDebugger Test 2 0 2 0 Ġ: ĠIntegration Test With Editor Base () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Solution DirectoryName () Ġ= Ġ" Unit Testing / Project 2 0 2 0 " ĊĊĠĠĠ Ġoverride Ġfun Ġpreprocess Temp Directory ( temp Dir : ĠFile ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . preprocess Temp Directory ( temp Dir ) ĊĊĠĠĠĠĠĠĠ Ġval Ġnew Behaviour Script Ġ= Ġ" New Behaviour Script . cs " ĊĠĠĠĠĠĠĠ Ġval Ġsource Script Ġ= ĠtestCase Source Directory . resolve ( new Behaviour Script ) ĊĠĠĠĠĠĠĠ Ġif Ġ( source Script . exists ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsource Script . copy To ( temp Dir . resolve (" Assets "). resolve ( new Behaviour Script ), Ġtrue ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcheck Breakpoint () Ġ{ ĊĠĠĠĠĠĠĠ Ġattach Debugger To Unity Editor And Play ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtoggle Breakpoint (" New Behaviour Script . cs ", Ġ 8 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtoggle Breakpoint (" New Behaviour Script . cs ", Ġ 1 5 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠwaitFor Pause () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdump Full Current Data () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresume Session () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠwaitFor Pause () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdump Full Current Data () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresume Session () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}, Ġtest Gold File ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After Method ( always Run Ġ= Ġtrue ) ĊĠĠĠ Ġfun Ġremove All Unity Pause points () Ġ{ ĊĠĠĠĠĠĠĠ ĠX Debugger Manager . getInstance ( project ). breakpoint Manager . all Break points . filter Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . type Ġis ĠUnity Pause point Breakpoint Type ĊĠĠĠĠĠĠĠ Ġ}. forEach Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠĠĠĠĠĠĠĠĠ ĠconvertTo Line Breakpoint ( project , Ġit Ġas ĠX Line Breakpoint < DotNet Line Breakpoint Properties >) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġremove All Break points () ĊĠĠĠ Ġ} Ċ }