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

Enable recording in Secrets test #6463

Merged
merged 14 commits into from
Jun 3, 2019
Merged

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Jun 3, 2019

No description provided.

{
string modeString = Environment.GetEnvironmentVariable(ModeEnvironmentVariableName);
mode = (RecordedTestMode)Enum.Parse(typeof(RecordedTestMode), modeString, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This will fail if the value is misspelled. Should we use Enum.TryPare instead and throw a better error message in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The exception that is being thrown is not that bad I think it would be pretty obvious where the problem is.

@AlexGhiondea AlexGhiondea marked this pull request as ready for review June 3, 2019 20:57
@pakrym pakrym merged commit 8c1e448 into Azure:master Jun 3, 2019
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