In some cases (restrictions on tools and / or the complexity of dependencies comes to my mind), a mocking dependency using external frameworks is out of the question. Then there is a completely legal technique for writing layouts manually (I think it was a way to do something before mocking frameworks became popular).
, - , C. - .
( , , - , , ), , / . (stubbing/mocking) - .
, - , , . ( , ) / ( DLL , , , ... ?).