Skip to content

Conversation

@jeffbi
Copy link
Contributor

@jeffbi jeffbi commented Jul 24, 2017

Addresses parts of #4148.

Copy link
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
Contributor Author

jeffbi commented Jul 25, 2017

Fixed.

Copy link
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
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
Contributor 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
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
Contributor 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
Member

Add test for Access Denied

@jeffbi
Copy link
Contributor Author

jeffbi commented Aug 1, 2017

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

Copy link
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