- adds GitRepoRegistration cmdlets - adds basic tests for GitRepoRegistration implementations - adds initial build project and scripts Refs: #5, #6
15 lines
No EOL
379 B
C#
15 lines
No EOL
379 B
C#
using System.Collections;
|
|
|
|
namespace ModuleTests;
|
|
|
|
public abstract class TestDataEnumerator<T> : IEnumerable<TheoryDataRow<T>>
|
|
{
|
|
protected IEnumerable<T> Data { get; init; } = [];
|
|
|
|
public IEnumerator<TheoryDataRow<T>> GetEnumerator()
|
|
{
|
|
return Data.Select(data => new TheoryDataRow<T>(data)).GetEnumerator();
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
|
} |