-
Notifications
You must be signed in to change notification settings - Fork 8
/
OverrideClassPrefixTests.cs
32 lines (26 loc) · 1.12 KB
/
OverrideClassPrefixTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Xunit;
namespace AoCHelper.Test;
[Collection("Sequential")]
public class OverrideClassPrefixTests
{
private abstract class GreatName : BaseProblem
{
protected override string ClassPrefix => nameof(GreatName);
}
private class GreatName01 : GreatName { public override ValueTask<string> Solve_1() => new(""); public override ValueTask<string> Solve_2() => new(""); }
private class GreatName_01 : GreatName { public override ValueTask<string> Solve_1() => new(""); public override ValueTask<string> Solve_2() => new(""); }
[Fact]
public async Task OverrideClassPrefix()
{
await Solver.Solve<GreatName01>();
await Solver.Solve<GreatName_01>();
}
private class Day11 : BaseDay { public override ValueTask<string> Solve_1() => new(""); public override ValueTask<string> Solve_2() => new(""); }
private class Day_11 : BaseDay { public override ValueTask<string> Solve_1() => new(""); public override ValueTask<string> Solve_2() => new(""); }
[Fact]
public async Task BaseDay()
{
await Solver.Solve<Day11>();
await Solver.Solve<Day_11>();
}
}