1
0
codeforces-template/Codeforces.Test/FileNameGenerator.cs

19 lines
488 B
C#
Raw Normal View History

using System.Collections;
namespace Codeforces.Test;
public class FileNameGenerator : IEnumerable<object[]>
{
private readonly string inputFolder = @"../../../Input";
public IEnumerator<object[]> GetEnumerator()
{
foreach (var input in Directory.GetFiles(inputFolder))
{
string name = Path.GetFileName(input);
string output = $"../../../Output/{name}.a";
yield return new object[] { input, output };
}
}
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}