-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
…nto keyvault-tests
…nto keyvault-tests
{ | ||
string modeString = Environment.GetEnvironmentVariable(ModeEnvironmentVariableName); | ||
mode = (RecordedTestMode)Enum.Parse(typeof(RecordedTestMode), modeString, true); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.