Skip to content

Increase test coverage for Rename-Item and Move-Item#4329

Merged
adityapatwardhan merged 6 commits intoPowerShell:masterfrom
jeffbi:tests-4148
Aug 2, 2017
Merged

Increase test coverage for Rename-Item and Move-Item#4329
adityapatwardhan merged 6 commits intoPowerShell:masterfrom
jeffbi:tests-4148

Conversation

@jeffbi
Copy link
Copy Markdown

@jeffbi jeffbi commented Jul 24, 2017

Addresses parts of #4148.

Copy link
Copy Markdown
Contributor

@dantraMSFT dantraMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using -ErrorAction Stop for the operations that you expect to succeed. It will be clearer than diagnosing why the Should statement failed.

@jeffbi
Copy link
Copy Markdown
Author

jeffbi commented Jul 25, 2017

Fixed.

Copy link
Copy Markdown
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment.

"$destDir/$testDir/$testFile" | Should Exist
}

It "Verity Move-Item will not move to an existing file" {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in Verity -> Verify

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

$testDir | Should Exist
}

It "Verify Move-Item as substitue for Rename-Item" {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: substitute

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@SteveL-MSFT
Copy link
Copy Markdown
Member

Add test for Access Denied

@jeffbi
Copy link
Copy Markdown
Author

jeffbi commented Aug 1, 2017

Added tests for access-denied. @SteveL-MSFT thanks for the pointer.

Copy link
Copy Markdown
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adityapatwardhan adityapatwardhan merged commit 8f9aed8 into PowerShell:master Aug 2, 2017
@jeffbi jeffbi deleted the tests-4148 branch August 2, 2017 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants