- updates calendar to support overriding the current day when rendering - supports current culture when rendering - renames Calendar to CalendarGenerator
15 lines
No EOL
382 B
C#
15 lines
No EOL
382 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();
|
|
} |