Day01_Part2: Add failing tests.
This commit is contained in:
@@ -5,6 +5,8 @@ namespace AdventOfCode2018.Tests
|
||||
[TestClass()]
|
||||
public class Day01_Tests
|
||||
{
|
||||
#region ResolveDay01
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01__Test1()
|
||||
{
|
||||
@@ -44,5 +46,61 @@ namespace AdventOfCode2018.Tests
|
||||
|
||||
Assert.AreEqual("-6", result);
|
||||
}
|
||||
|
||||
#endregion ResolveDay01
|
||||
|
||||
#region ResolveDay01_Part2
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test1()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+1", "-2", "+3", "+1", });
|
||||
|
||||
Assert.AreEqual("2", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test2()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+1", "-1", });
|
||||
|
||||
Assert.AreEqual("0", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test3()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+3", "+3", "+4", "-2", "-4", });
|
||||
|
||||
Assert.AreEqual("10", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test4()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "-6", "+3", "+8", "+5", "-6", });
|
||||
|
||||
Assert.AreEqual("5", result);
|
||||
}
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolveDay01_Part2__Test5()
|
||||
{
|
||||
Day01 day01 = new Day01();
|
||||
|
||||
string result = day01.ResolveDay01_Part2(new string[] { "+7", "+7", "-2", "-7", "-4", });
|
||||
|
||||
Assert.AreEqual("14", result);
|
||||
}
|
||||
|
||||
#endregion ResolveDay01_Part2
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user