-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
62 additions
and
57 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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...sc.Tests/Configuration/VerifiedDocs/DocsRepositoryActionsTests.VerifyChanges.verified.txt
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 @@ | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
24 changes: 24 additions & 0 deletions
24
tests/RepoM.Plugin.Misc.Tests/TestFramework/MockFileSystemFactory.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,24 @@ | ||
namespace RepoM.Plugin.Misc.Tests.TestFramework; | ||
|
||
using System.Collections.Generic; | ||
using System.IO.Abstractions.TestingHelpers; | ||
using FakeItEasy; | ||
using RepoM.Core.Plugin.Common; | ||
|
||
internal static class MockFileSystemFactory | ||
{ | ||
public static MockFileSystem CreateDefaultFileSystem() | ||
{ | ||
return new MockFileSystem(new Dictionary<string, MockFileData>() | ||
{ | ||
{ "C:\\tmp\\x.tmp", new MockFileData("x") }, // make sure path exists. | ||
}); | ||
} | ||
|
||
public static IAppDataPathProvider CreateDefaultAppDataProvider() | ||
{ | ||
IAppDataPathProvider appDataPathProvider = A.Fake<IAppDataPathProvider>(); | ||
A.CallTo(() => appDataPathProvider.AppDataPath).Returns("C:\\tmp\\"); | ||
return appDataPathProvider; | ||
} | ||
} |
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