-
Notifications
You must be signed in to change notification settings - Fork 254
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
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.
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; |
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.
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 }; |
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.
Nit: testSourceHost
@dotnet-bot Test Windows / Release Build please |
No description provided.