mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
15 lines
501 B
PowerShell
15 lines
501 B
PowerShell
Describe "Move-Item tests" -Tag "CI" {
|
|
BeforeAll {
|
|
$content = "This is content"
|
|
Setup -f originalfile.txt -content "This is content"
|
|
$source = "$TESTDRIVE/originalfile.txt"
|
|
$target = "$TESTDRIVE/ItemWhichHasBeenRenamed.txt"
|
|
}
|
|
It "Rename-Item will rename a file" {
|
|
Rename-Item $source $target
|
|
test-path $source | Should be $false
|
|
test-path $target | Should be $true
|
|
"$target" | Should ContainExactly "This is content"
|
|
}
|
|
}
|