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

Add guardrails to TestEnvironment #11570

Merged
merged 2 commits into from
Apr 24, 2020

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Apr 24, 2020

To prevent reading of recorded variables in test class ctors.

@pakrym pakrym requested a review from christothes April 24, 2020 15:33
public void SetRecording(TestRecording recording, bool playback)
public void SetMode(RecordedTestMode mode)
{
_mode = mode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be allowed to call SetMode multiple times?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why not.

@pakrym pakrym merged commit 9cbc01b into Azure:master Apr 24, 2020
@pakrym pakrym deleted the pakrym/recording-guardrails branch April 24, 2020 16:25
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

Successfully merging this pull request may close these issues.

3 participants