mirror of
https://github.com/jcreek/advent-of-code.git
synced 2026-07-13 03:03:46 +00:00
chore(*): Update syntax for newer version of NUnit
This commit is contained in:
@@ -29,7 +29,7 @@ namespace AOC.Tests.Y2022
|
||||
|
||||
10000", 24000)]
|
||||
[TestCase(null, 70764)] // The actual answer
|
||||
public void Part1(string input, int? expected)
|
||||
public void Part1(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace AOC.Tests.Y2022
|
||||
|
||||
10000", 45000)]
|
||||
[TestCase(null, 203905)] // The actual answer
|
||||
public void Part2(string input, int? expected)
|
||||
public void Part2(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
@@ -107,4 +107,4 @@ namespace AOC.Tests.Y2022
|
||||
Console.WriteLine($"Part 2: {result}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AOC.Tests.Y2022
|
||||
B X
|
||||
C Z", 15)]
|
||||
[TestCase(null, 8392)] // The actual answer
|
||||
public void Part1(string input, int? expected)
|
||||
public void Part1(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
@@ -36,7 +36,7 @@ C Z", 15)]
|
||||
B X
|
||||
C Z", 12)]
|
||||
[TestCase(null, 1783)] // The actual answer
|
||||
public void Part2(string input, int? expected)
|
||||
public void Part2(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
|
||||
@@ -174,4 +174,4 @@ C Z", 12)]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn
|
||||
ttgJtRGJQctTZtZT
|
||||
CrZsJsPPZsGzwwsLwLmpwMDw", 157)]
|
||||
[TestCase(null, 8176)] // The actual answer
|
||||
public void Part1(string input, int? expected)
|
||||
public void Part1(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
List<char> items = new();
|
||||
@@ -112,7 +112,7 @@ wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn
|
||||
ttgJtRGJQctTZtZT
|
||||
CrZsJsPPZsGzwwsLwLmpwMDw", 70)]
|
||||
[TestCase(null, 2689)] // The actual answer
|
||||
public void Part2(string input, int? expected)
|
||||
public void Part2(string? input, int? expected)
|
||||
{
|
||||
string[] lines = input != null ? input.Split("\n") : realData;
|
||||
List<char> items = new();
|
||||
@@ -141,4 +141,4 @@ CrZsJsPPZsGzwwsLwLmpwMDw", 70)]
|
||||
Console.WriteLine($"Part 2: {result}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user