Code cleanup
This commit is contained in:
@@ -1,43 +1,40 @@
|
||||
using Xunit;
|
||||
namespace AdventOfCode2018.Tests;
|
||||
|
||||
namespace AdventOfCode2018.Tests
|
||||
public class Day02_Tests
|
||||
{
|
||||
public class Day02_Tests
|
||||
[Fact]
|
||||
public void ResolvePart1__Test1()
|
||||
{
|
||||
[Fact]
|
||||
public void ResolvePart1__Test1()
|
||||
{
|
||||
Day02 day02 = new Day02();
|
||||
Day02 day02 = new();
|
||||
|
||||
string result = day02.ResolvePart1(new string[] {
|
||||
"abcdef",
|
||||
"bababc",
|
||||
"abbcde",
|
||||
"abcccd",
|
||||
"aabcdd",
|
||||
"abcdee",
|
||||
"ababab",
|
||||
});
|
||||
string result = day02.ResolvePart1(new[] {
|
||||
"abcdef",
|
||||
"bababc",
|
||||
"abbcde",
|
||||
"abcccd",
|
||||
"aabcdd",
|
||||
"abcdee",
|
||||
"ababab",
|
||||
});
|
||||
|
||||
Assert.Equal("12", result);
|
||||
}
|
||||
Assert.Equal("12", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day02 day02 = new Day02();
|
||||
[Fact]
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day02 day02 = new();
|
||||
|
||||
string result = day02.ResolvePart2(new string[] {
|
||||
"abcde",
|
||||
"fghij",
|
||||
"klmno",
|
||||
"pqrst",
|
||||
"fguij",
|
||||
"axcye",
|
||||
"wvxyz",
|
||||
});
|
||||
string result = day02.ResolvePart2(new[] {
|
||||
"abcde",
|
||||
"fghij",
|
||||
"klmno",
|
||||
"pqrst",
|
||||
"fguij",
|
||||
"axcye",
|
||||
"wvxyz",
|
||||
});
|
||||
|
||||
Assert.Equal("fgij", result);
|
||||
}
|
||||
Assert.Equal("fgij", result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user