Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce .Protected().As<TDuck>() to perform duck-typed setup and verification of protected members #495

Merged
merged 5 commits into from
Oct 23, 2017

Commits on Oct 22, 2017

  1. Configuration menu
    Copy the full SHA
    66dc1fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf97a95 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2017

  1. Add missing Setup methods (except SetupSet)

    Since `SetupSet`'s parameter cannot be an expression (they may not
    contain any assignments), there's nothing to rewrite like with the
    other methods; if we stayed true to how Moq usually handles this kind
    of expression tree limitation, we'd declare an `Action<TDuck>` param-
    eter and then execute it inside a `FluentMockContext`. This doesn't
    work either, since we have no instance of `TDuck` to hand to the
    delegate.
    stakx committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    55f93d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9e98fe View commit details
    Browse the repository at this point in the history
  3. Update the changelog

    stakx committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    4ac0c2e View commit details
    Browse the repository at this point in the history