mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fix travis fail for FileSytemProvider xunit test
This commit is contained in:
1 parent
7c5a13ec74
commit
81a31ab07e
1 file changed
+2
-2
@@ -78,7 +78,7 @@ namespace PSTests
|
||||
FileSystemInfo directoryObject = new DirectoryInfo(@"/");
|
||||
FileSystemInfo fileObject = new FileInfo(@"/etc/hosts");
|
||||
FileSystemInfo excutableObject = new FileInfo(@"/bin/echo");
|
||||
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(directoryObject)),"d-----");
|
||||
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(directoryObject)).Replace("r","-"),"d-r---".Replace("r","-"));
|
||||
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(fileObject)),"------");
|
||||
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(excutableObject)),"------");
|
||||
}
|
||||
@@ -157,8 +157,8 @@ namespace PSTests
|
||||
|
||||
IContentWriter contentWriter = fileSystemProvider.GetContentWriter(testPath);
|
||||
contentWriter.Write(new List<string>(){"contentWriterTestContent"});
|
||||
//Assert.Equal(File.ReadAllText(testPath),testContent+"contentWriterTestContent");
|
||||
contentWriter.Close();
|
||||
Assert.Equal(File.ReadAllText(testPath), testContent+@"contentWriterTestContent"+ System.Environment.NewLine);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user