Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/csharp/test_FileSystemProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class FileSystemProviderTests: IDisposable
private string testContent;
public FileSystemProviderTests()
{
testPath = Path.Combine(Path.GetTempPath(),"test");
testPath = Path.GetTempFileName();
testContent = "test content!";
if(File.Exists(testPath)) File.Delete(testPath);
File.AppendAllText(testPath,testContent);
Expand Down Expand Up @@ -138,9 +138,9 @@ public void TestSetProperty()
PSObject psobject1=PSObject.AsPSObject(fileSystemObject1);
foreach(PSPropertyInfo property in psobject1.Properties)
{
if(property.Name == "Name")
if(property.Name == "FullName")
{
Assert.Equal("test", property.Value);
Assert.Equal(testPath, property.Value);
}
}
}
Expand Down