Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure MockFile.Copy clones contents #354

Merged
merged 2 commits into from
Oct 6, 2018
Merged

Ensure MockFile.Copy clones contents #354

merged 2 commits into from
Oct 6, 2018

Conversation

fgreinacher
Copy link
Contributor

Fixes #353

Copy link
Contributor

@robkeim robkeim left a comment

Choose a reason for hiding this comment

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

Changes look good to me, I just added one minor comment. Thanks @fgreinacher!

/// <exception cref="ArgumentNullException">Thrown if <paramref name="template"/> is <see langword="null" />.</exception>
public MockFileData(MockFileData template)
{
if (template == null) throw new ArgumentNullException(nameof(template));
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: for consistency for one line conditional blocks do we prefer this syntax or the following:

if (condition)
{
    // Statement to execute
}

I see the later being used in MockFileData.cs:
https://github.com/System-IO-Abstractions/System.IO.Abstractions/blob/55a82b00781139b041d4a2b9a59a4ad9956d28a7/System.IO.Abstractions.TestingHelpers/MockFile.cs#L31

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.

3 participants