Skip to content

Merge from upstream master#2

Merged
ericnewton76 merged 126 commits intoericnewton76:masterfrom
TestableIO:master
Aug 7, 2018
Merged

Merge from upstream master#2
ericnewton76 merged 126 commits intoericnewton76:masterfrom
TestableIO:master

Conversation

@ericnewton76
Copy link
Copy Markdown
Owner

No description provided.

Matt Dwen and others added 30 commits March 2, 2017 11:04
With the test helpers, when a directory is moved, any custom attributes
such as hidden or system are not moved to the destination directory.
Ensure attributes follow when moving a directory
fix #210 - mock CreateDirectory should ignore existing directories
…ring

Issue215 mock directory info to string
…n exception.

Implementation note - instead of using System.IO.FileAccess/FileMode, I
ended up creating an internal StreamType enum instead to keep the
interface simple. That's potentially something to change upon on review,
but I think it's good the way it is.
NET Standard compatibility v2
Now that we're only producing the right packages, we can deploy all
of them to NuGet
Only build PRs once, not once for the PR and once for the feature branch
Update nuget.exe during build script
Was picking up PR builds otherwise
The mid-build upgrade was an attempt to work around an AppVeyor
publishing issue, however the AppVeyor NuGet provider doesn't use
the command line app by default anyway. The AppVeyor environment
has subseqently been upgraded to fix this properly, and we no longer
get 400 errors when pushing to the NuGet service.
jpreese and others added 29 commits July 8, 2018 11:17
* Removed XOR of the MockFileData.Contents
* Modified MockFileInfo Encrypt/Decrypt tests to cover the Encrypted attribute instead
* Implemented File.Replace, FileInfo.Replace

Added File property to IMockFileDataAccessor

* Fixed File exists check in MockFile.Replace

* Added unit tests for FileInfo.Replace (5 tests) and File.Replace (4 tests)

Tests are NET40 specific

* Added explicit null argument checks to File.Replace

* Cleaned up unit tests for File.Replace, FileInfo.Replace

* Added tests that Replace should throw if backup is in missing directory
Add target for netstandard2.0, and shuffle along dependencies
* Introduce SkipOnUnixAttribute and use it to simplify tests

* Move SkipReason to separate file

* Rename SkipOnUnixAttribute to WindowsOnlyAttribute

* Improve windows-specific tests
Add inheritdoc comments to public types 

Fixes #245

Method comments reference System.IO.FileInfo via inheritdoc tag.

* Add XML documentation file (#245)

This enables the XML documentation file to be generated for both
debug and release configurations. It allows the method comments to
be formed into an XML documentation file and distributed alongside
System.IO.Abstractions.

* Fix incorrect parameter in inheritdoc cref

* Add method comments to FileBase (#245)

Method comments reference System.IO.File via inheritdoc tag.

* Add method comments to PathBase (#245)

Method comments reference System.IO.Path via inheritdoc tag.

* Add method comments to DriveInfoBase (#245)

Method comments reference System.IO.DriveInfo via inheritdoc tag.

* Add method comments to FileSystemWatcherBase (#245)

Method comments reference System.IO.FileSystemWatcher via inheritdoc
tag.

* Add class comment to DirectoryInfoBase (#245)

Class comment reference System.IO.DirectoryInfo via inheritdoc tag.

* Add class comment to FileBase (#245)

Class comment reference System.IO.File via inheritdoc tag.

* Add class comment to FileInfoBase (#245)

Class comment reference System.IO.FileInfo via inheritdoc tag.

* Add class comment to FileSystemWatcherBase (#245)

Class comment references System.IO.FileSystemWatcher via inheritdoc
tag.

* Add method comments to FileSystemInfoBase (#245)

Method comments reference System.IO.FileSystemInfo via inheritdoc
tag.

* Add class comment to PathBase (#245)

Class comment references System.IO.Path via inheritdoc tag.

* Add comments to DirectoryBase (#245)

Comments reference System.IO.Directory via inheritdoc tag.

* Add method comments to DirectoryInfoBase (#245)

Method comments reference System.IO.DirectoryInfo via inheritdoc
tag.
* Add FileStreamFactory and support for mocking FileStreams

* Fix .NET Standard compile

* Adapt MockFileStreamFactory to MockFileStream changes

* Add missing ifdefs for MockFileStreamFactory

* Use expression bodies

* Delete unnecessary nuspec file

* Simplify MockFileStreamFactory tests

Fixes #224
Setting the XML documentation file through Project Properties/Build
only generated the XML documentation file for NET40 and not
netstandard1.4 nor netstandard2.0. Adding the property
GenerateDocumentationFile and setting it to true generates the
documentation for all build types.
This was supported for files before, but directories behave a little differenlty. This should better match .Net System.IO behavior.
* Implement AccessControl on FileInfo.

* Addressed code review comments.

- Moved namespaces
- Fixed SetAccessControl* unit test names
* MockFileStream now blocks writing if created with the READ type

* Enhanced MockFile.Open to take read mode into account

* Unit tests now check for expected exceptions

* Fixed MockFile_OpenWrite_ShouldCreateNewFiles

* Review fixes
@ericnewton76 ericnewton76 merged commit ed7c5e6 into ericnewton76:master Aug 7, 2018
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.