Merge pull request #787 from PowerShell/andschwa/platform-module

Remove Microsoft.PowerShell.Platform
This commit is contained in:
Andy Schwartzmeyer committed 2016-04-08 16:07:38 -07:00
commit a6a6ac7c36
35 files changed
+192 -145

No files matched your search

+13 -1
View File
@@ -12,7 +12,19 @@ namespace PSTests
[Fact]
public static void TestIsLinux()
{
Assert.True(Platform.IsLinux());
Assert.True(Platform.IsLinux);
}
[Fact]
public static void TestIsWindows()
{
Assert.False(Platform.IsWindows);
}
[Fact]
public static void TestIsCore()
{
Assert.True(Platform.IsCore);
}
[Fact]
+2 -2
View File
@@ -1,5 +1,5 @@
Describe "Import-Module" {
$moduleName = "Microsoft.PowerShell.Platform"
$moduleName = "Microsoft.PowerShell.Security"
BeforeEach {
Remove-Module -Name $moduleName -Force
@@ -21,4 +21,4 @@
{ Import-Module -ModuleInfo $a } | Should Not Throw
(Get-Module -Name $moduleName).Name | Should Be $moduleName
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
Describe "Remove-Module" {
$moduleName = "Microsoft.PowerShell.Platform"
$moduleName = "Microsoft.PowerShell.Security"
BeforeEach {
Import-Module -Name $moduleName -Force
-2
View File
@@ -87,8 +87,6 @@ Describe "Select-String" {
}
Context "Filesytem actions" {
$isWindows = [System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform([System.Runtime.InteropServices.OSPlatform]::Windows)
$testDirectory = $TestDrive
$testInputFile = Join-Path -Path $testDirectory -ChildPath testfile1.txt