Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Support for generic methods and Ref/Out parameters

Choose a tag to compare

@nehmebilal nehmebilal released this 14 Jul 22:46
  • Generic methods are now supported.
  • Ref and Out parameters are now supported.
  • The new stubbing Api is simpler and more readable:

Old Api:

var stub = new StubIPhoneBook
{
    GetContactPhoneNumber_String_String = (fn, ln) =>
    {
        return 6041234567;
    }
};

New Api:

var stub = new StubIPhoneBook().GetContactPhoneNumber((fn, ln) => 6041234567);