test(core): replace hand-written instructions in ComponentRef tests with TestBed (#46528)
test(core): replace hand-written instructions in ComponentRef tests with TestBed (#46528)

This commit updates a set of ComponentRef tests to avoid using hand-written instructions and replace them with TestBed APIs.

PR Close #46528

gnomeontherun/angular,angular-indonesia/angular,gkalpak/angular,gnomeontherun/angular,angular-indonesia/angular,gkalpak/angular,JiaLiPassion/angular,gnomeontherun/angular,angular/angular,angular/angular,JiaLiPassion/angular,JiaLiPassion/angular,angular/angular,angular-indonesia/angular,gkalpak/angular,gkalpak/angular,angular/angular,angular-indonesia/angular,JiaLiPassion/angular,gnomeontherun/angular