Add SessionStateTests to AssemblyLoadContext collection

This commit is contained in:
Andrew Schwartzmeyer committed 2016-03-17 19:11:41 -07:00
1 parent c42258cfac
commit 1665d6c525
1 file changed
+1 -2
+1 -2
View File
@@ -13,12 +13,12 @@ using Microsoft.PowerShell.Linux.Host;
namespace PSTests
{
[Collection("AssemblyLoadContext")]
public class SessionStateTests
{
[Fact]
public void TestDrives()
{
PowerShellAssemblyLoadContextInitializer.SetPowerShellAssemblyLoadContext(AppContext.BaseDirectory);
CultureInfo currentCulture = CultureInfo.CurrentCulture;
PSHost hostInterface = new DefaultHost(currentCulture,currentCulture);
RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
@@ -29,6 +29,5 @@ namespace PSTests
Collection<PSDriveInfo> drives = sessionState.Drives(null);
Assert.True(drives.Count>0);
}
}
}