-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Simplify tests #75977
Simplify tests #75977
Conversation
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.
@@ -51,6 +51,7 @@ static Test() | |||
public Test() | |||
{ | |||
_sharedState = new SharedVerifierState(this, DefaultFileExt); | |||
this.FixedState.InheritanceMode = StateInheritanceMode.AutoInherit; |
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.
I am highly concerned about this significantly changing the test behavior in ways that cannot be explained.
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.
What is the significant change in test behavior.
that cannot be explained.
Who can explain it? Isn't this the behavior of normal CodeFix Tests? They inherit the end state from the start state? Which is why you don't need to supply the 'FixedCode' if it is the same as the 'TestCode'.
Going to mvoe forward on this, esp. as it mirrors how code fixes already work, unless tehre is a demonstrable problem here. Being able to just supply TestCode, and nothing else, to indicate ethat nothing changes is much nicer. It also allows the test to just be a single declarative expression, instead of needing to define locals which are passed multiple times to the .Test constructor. This is the form we use everywhere for code-fixes, so having parity with refactorings is good. I'll wait till tomorrow and merge then if there's no additional information added. |
No description provided.