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

Adding warning message for vsmdi file #323

Merged
merged 5 commits into from
Dec 6, 2017

Conversation

jayaranigarg
Copy link
Member

No description provided.

@jayaranigarg
Copy link
Member Author

#61

@@ -1011,6 +1011,21 @@ public void IsLegacyScenarioReturnsTrueWhenTestSettingsFileIsGiven()
Assert.IsTrue(MSTestSettings.IsLegacyScenario(this.mockMessageLogger.Object));
}

[TestMethod]
public void IsLegacyScenarioReturnsTrueWhenVsmdiFileIsGiven()
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is not required because we don't check for file extension and it is covered in IsLegacyScenarioReturnsTrueWhenTestSettingsFileIsGiven.
Consider adding test to check warning message warning message.

@@ -285,7 +285,7 @@
<value>The test method {0}.{1} has multiple attributes derived from ExpectedExceptionBaseAttribute defined on it. Only one such attribute is allowed.</value>
</data>
<data name="LegacyScenariosNotSupportedWarning" xml:space="preserve">
<value>Warning : A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter.</value>
<value>Warning : A vsmdi file, testsettings file or a runsettings file with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter.</value>
Copy link
Contributor

Choose a reason for hiding this comment

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

How about change it to "A testsettings file, a runsettings file with a ForcedLegacyMode set to true or a vsmdi file is not supported with the MSTest V2 Adapter." ? As vsmdi is less popular. /cc @pvlakshm

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that sounds better.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@jayaranigarg jayaranigarg merged commit 44933af into microsoft:master Dec 6, 2017
@jayaranigarg jayaranigarg deleted the vsmdifix branch December 8, 2017 08:38
singhsarab pushed a commit to singhsarab/testfx that referenced this pull request Apr 8, 2019
* Fixed versioning miss match of Testplatform.vsix
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