Merge pull request 112 from dev/70-refactor-FileSystemProvider into develop
This commit is contained in:
commit
8daafecc67
3 changed files with 21 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 1a2fa0af446bf6adda0400fc54b5529afe58ef19
|
Subproject commit 0a616962315ca21bfc3d39bf699d26540a97d08a
|
|
@ -18,4 +18,8 @@
|
||||||
(Get-Item /usr/bin) | Should Not BeNullOrEmpty
|
(Get-Item /usr/bin) | Should Not BeNullOrEmpty
|
||||||
(Get-Item ..) | Should Not BeNullOrEmpty
|
(Get-Item ..) | Should Not BeNullOrEmpty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "Should have mode flags set" {
|
||||||
|
ls / | foreach-object { $_.Mode | Should Not BeNullOrEmpty }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
16
src/ps_test/test_FileSystemProvider.cs
Normal file
16
src/ps_test/test_FileSystemProvider.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using Xunit;
|
||||||
|
using System;
|
||||||
|
using System.Management.Automation;
|
||||||
|
using Microsoft.PowerShell.Commands;
|
||||||
|
|
||||||
|
namespace PSTests
|
||||||
|
{
|
||||||
|
public static class FileSystemProviderTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public static void TestCreateJunctionFails()
|
||||||
|
{
|
||||||
|
Assert.False(InternalSymbolicLinkLinkCodeMethods.CreateJunction("",""));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue