chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi all,

I want to test a method of an abstract class. Kindly let me know, is it possible to create object of an abstract class. Thanks
asked by sony (7.2k points)

1 Answer

0 votes
Hi Sony,

You can simply use Isolate.Fake.Instance() normally with your abstract class, and it will create a fake instance derived from it. You can then proceed to fake individual methods and pass it into production code as you would with any fake instance.

Typemock Support
answered by doron (17.2k points)