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

There is no output for a Context.Given when called from a base class. #6

Open
KarsonAlford opened this issue Mar 6, 2014 · 1 comment

Comments

@KarsonAlford
Copy link
Contributor

This behavior makes sense when the call is made in a static context. However, this is also happening when called from a before.

[TestClass, Ignore] // All unit test base classes should be ignored.
public abstract class expectations_for_XXX : Scenario
{
    protected static AssessmentInstance AssessmentInstance;
    protected static List<ResultQuestionViewModel> Result { get; set; }

    before initialize = () =>
    {
        Mapper.Reset(); // Clear the static MappingEngine.
        Mapper.AddProfile<AssessmentScoreMappingProfile>();

        AssessmentInstance = Context.Given<AssessmentInstance>(AssessmentScoreContextProvider.EverythingAssessment);
    };
@copypastedeveloper
Copy link
Owner

probably not done enough testing with base classes. i'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants