aboutsummaryrefslogtreecommitdiff
path: root/Codeforces.Test/FileNameGenerator.cs
blob: d73de7a71d38ed2cd94a831992918d9f50af1bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();
}