mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #787 from PowerShell/andschwa/platform-module
Remove Microsoft.PowerShell.Platform
This commit is contained in:
commit
a6a6ac7c36
35 files changed
+192
-145
No files matched your search
@@ -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]
|
||||
|
||||
@@ -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,5 +1,5 @@
|
||||
Describe "Remove-Module" {
|
||||
$moduleName = "Microsoft.PowerShell.Platform"
|
||||
$moduleName = "Microsoft.PowerShell.Security"
|
||||
|
||||
BeforeEach {
|
||||
Import-Module -Name $moduleName -Force
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user