tests(git-provider): Add basic registration tests
- make ModuleCore internals visible to ModuleTests
This commit is contained in:
parent
b9f856e716
commit
09236e826a
7 changed files with 135 additions and 38 deletions
18
tests/ModuleTests/Git/TestData/AddRegistrationTestData.cs
Normal file
18
tests/ModuleTests/Git/TestData/AddRegistrationTestData.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Linq;
|
||||
|
||||
namespace ModuleTests.Git.TestData;
|
||||
|
||||
public class AddRegistrationTestData : TestDataEnumerator<(int testId, string path)>
|
||||
{
|
||||
public AddRegistrationTestData()
|
||||
{
|
||||
Data = new List<string>()
|
||||
{
|
||||
"test",
|
||||
$"test{Path.DirectorySeparatorChar}path",
|
||||
$"other{Path.AltDirectorySeparatorChar}path"
|
||||
}
|
||||
.Select((x, i) => (i, x))
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue