-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also apply time in MockFileStream Mark MockFile_AfterSetAccessControl_ShouldUpdateLastAccessTime as Windows-Only
- Loading branch information
Showing
12 changed files
with
502 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/System.IO.Abstractions.TestingHelpers/TimeAdjustments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace System.IO.Abstractions.TestingHelpers | ||
{ | ||
/// <summary> | ||
/// Flags indicating which times to adjust for a <see cref="MockFileData"/>. | ||
/// </summary> | ||
[Flags] | ||
public enum TimeAdjustments | ||
{ | ||
/// <summary> | ||
/// Adjusts no times on the <see cref="MockFileData"/> | ||
/// </summary> | ||
None = 0, | ||
/// <summary> | ||
/// Adjusts the <see cref="MockFileData.CreationTime"/> | ||
/// </summary> | ||
CreationTime = 1 << 0, | ||
/// <summary> | ||
/// Adjusts the <see cref="MockFileData.LastAccessTime"/> | ||
/// </summary> | ||
LastAccessTime = 1 << 1, | ||
/// <summary> | ||
/// Adjusts the <see cref="MockFileData.LastWriteTime"/> | ||
/// </summary> | ||
LastWriteTime = 1 << 2, | ||
/// <summary> | ||
/// Adjusts all times on the <see cref="MockFileData"/> | ||
/// </summary> | ||
All = ~0 | ||
} | ||
} |
Oops, something went wrong.