Rename resolve methods
This commit is contained in:
@@ -5,102 +5,102 @@ namespace AdventOfCode2018.Tests
|
||||
[TestClass()]
|
||||
public class Day01_Tests
|
||||
{
|
||||
#region ResolveDay01
|
||||
#region ResolvePart1
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01__Test1()
|
||||
public void ResolvePart1__Test1()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01(new string[] { "+1", "-2", "+3", "+1", });
|
||||
string result = day01.ResolvePart1(new string[] { "+1", "-2", "+3", "+1", });
|
||||
|
||||
Assert.AreEqual("3", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01__Test2()
|
||||
public void ResolvePart1__Test2()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01(new string[] { "+1", "+1", "+1", });
|
||||
string result = day01.ResolvePart1(new string[] { "+1", "+1", "+1", });
|
||||
|
||||
Assert.AreEqual("3", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01__Test3()
|
||||
public void ResolvePart1__Test3()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01(new string[] { "+1", "+1", "-2", });
|
||||
string result = day01.ResolvePart1(new string[] { "+1", "+1", "-2", });
|
||||
|
||||
Assert.AreEqual("0", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01__Test4()
|
||||
public void ResolvePart1__Test4()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01(new string[] { "-1", "-2", "-3", });
|
||||
string result = day01.ResolvePart1(new string[] { "-1", "-2", "-3", });
|
||||
|
||||
Assert.AreEqual("-6", result);
|
||||
}
|
||||
|
||||
#endregion ResolveDay01
|
||||
|
||||
#region ResolveDay01_Part2
|
||||
#region ResolvePart2
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test1()
|
||||
public void ResolvePart2__Test1()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+1", "-2", "+3", "+1", });
|
||||
string result = day01.ResolvePart2(new string[] { "+1", "-2", "+3", "+1", });
|
||||
|
||||
Assert.AreEqual("2", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test2()
|
||||
public void ResolvePart2__Test2()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+1", "-1", });
|
||||
string result = day01.ResolvePart2(new string[] { "+1", "-1", });
|
||||
|
||||
Assert.AreEqual("0", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test3()
|
||||
public void ResolvePart2__Test3()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+3", "+3", "+4", "-2", "-4", });
|
||||
string result = day01.ResolvePart2(new string[] { "+3", "+3", "+4", "-2", "-4", });
|
||||
|
||||
Assert.AreEqual("10", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test4()
|
||||
public void ResolvePart2__Test4()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "-6", "+3", "+8", "+5", "-6", });
|
||||
string result = day01.ResolvePart2(new string[] { "-6", "+3", "+8", "+5", "-6", });
|
||||
|
||||
Assert.AreEqual("5", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test5()
|
||||
public void ResolvePart2__Test5()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+7", "+7", "-2", "-7", "-4", });
|
||||
string result = day01.ResolvePart2(new string[] { "+7", "+7", "-2", "-7", "-4", });
|
||||
|
||||
Assert.AreEqual("14", result);
|
||||
}
|
||||
|
||||
#endregion ResolveDay01_Part2
|
||||
#endregion ResolvePart2
|
||||
}
|
||||
}
|
||||
@@ -6,11 +6,11 @@ namespace AdventOfCode2018.Tests
|
||||
public class Day02_Tests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void ResolveDay02__Test1()
|
||||
public void ResolvePart1__Test1()
|
||||
{
|
||||
Day02 day02 = new Day02();
|
||||
|
||||
string result = day02.ResolveDay02(new string[] {
|
||||
string result = day02.ResolvePart1(new string[] {
|
||||
"abcdef",
|
||||
"bababc",
|
||||
"abbcde",
|
||||
@@ -24,11 +24,11 @@ namespace AdventOfCode2018.Tests
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay02_Part2__Test()
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day02 day02 = new Day02();
|
||||
|
||||
string result = day02.ResolveDay02_Part2(new string[] {
|
||||
string result = day02.ResolvePart2(new string[] {
|
||||
"abcde",
|
||||
"fghij",
|
||||
"klmno",
|
||||
|
||||
@@ -6,11 +6,11 @@ namespace AdventOfCode2018.Tests
|
||||
public class Day03_Tests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void ResolveDay03__Test()
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
Day03 day03 = new Day03();
|
||||
|
||||
string result = day03.ResolveDay03(new string[] {
|
||||
string result = day03.ResolvePart1(new string[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
@@ -20,11 +20,11 @@ namespace AdventOfCode2018.Tests
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay03_Part2__Test()
|
||||
public void ResolvePart2__Test()
|
||||
{
|
||||
Day03 day03 = new Day03();
|
||||
|
||||
string result = day03.ResolveDay03_Part2(new string[] {
|
||||
string result = day03.ResolvePart2(new string[] {
|
||||
"#1 @ 1,3: 4x4",
|
||||
"#2 @ 3,1: 4x4",
|
||||
"#3 @ 5,5: 2x2",
|
||||
|
||||
Reference in New Issue
Block a user