Controlling and Verifying Future Constructor Calls

Top  Previous  Next

Enterprise users can control constructor behavior for future instances with Fake.All.

 

This enables:

·Ignoring constructors so heavy initialization logic is skipped.
·Conditionally chaining: some constructors skipped, others run normally.
·Verifying that a base-class constructor was called

 

This allows testing of complex initialization paths without executing full construction logic every time.

 

See more in Controlling and Verifying Future Constructor Calls.


Copyright  Typemock Ltd. 2009-2025.  All Rights Reserved.