We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89898bf commit 655ec2eCopy full SHA for 655ec2e
1 file changed
tests/MemoryMappedFile.Tests.ps1
@@ -12,11 +12,11 @@ param()
12
Describe 'Module' {
13
Context 'MemoryMappedFile' {
14
It 'New-MemoryMappedFile' {
15
- $fileName = "$HOME\test.json"
16
- $size = 1024
17
- $mmf = New-MemoryMappedFile -Name 'shared' -Path $fileName -Size $size
+ $path = './shared.json'
+ $mmf = New-MemoryMappedFile -Name 'shared' -Path $path
+ { $mmf.Dispose() } | Should -Not -Throw
18
$mmf | Should -Not -BeNullOrEmpty
19
- Test-Path $fileName | Should -BeTrue
+ Test-Path $path | Should -BeTrue
20
}
21
22
It 'Get-MemoryMappedFile' {
0 commit comments