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

Fix for AppDomain creation should honor runsettings #427

Merged
merged 3 commits into from
May 24, 2018

Conversation

jayaranigarg
Copy link
Member

No description provided.

@jayaranigarg jayaranigarg requested a review from smadala May 24, 2018 08:37
Copy link

@nigurr nigurr left a comment

Choose a reason for hiding this comment

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

Please do add test for enabled case too. thanks

@@ -359,6 +359,7 @@ private void AppDomainCreationDisabledInRunSettings()
if (this.runSettings != null && MSTestAdapterSettings.IsAppDomainCreationDisabled(this.runSettings.SettingsXml))
{
this.isAppDomainCreationDisabled = true;
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Change the function name to IsAppDomainCreationDisabledInRunSettings make return type bool. or assign value of this.runSettings != null && MSTestAdapterSettings.IsAppDomainCreationDisabled(this.runSettings.SettingsXml) to isAppDomainCreationDisabled in .ctor and remove this function.

var mockRunSettings = new Mock<IRunSettings>();
mockRunSettings.Setup(rs => rs.SettingsXml).Returns(runSettingxml);

Mock<TestSourceHost> sourceHost = new Mock<TestSourceHost>(location, mockRunSettings.Object, null) { CallBase = true };
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: testSourceHost

@jayaranigarg
Copy link
Member Author

@dotnet-bot Test Windows / Release Build please

@jayaranigarg jayaranigarg merged commit c5184f9 into microsoft:master May 24, 2018
@jayaranigarg jayaranigarg deleted the appdomainfix branch May 24, 2018 10:44
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.

4 participants