Day02
This commit is contained in:
44
AdventOfCode2020.Tests/Day02_Tests.cs
Normal file
44
AdventOfCode2020.Tests/Day02_Tests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace AdventOfCode2020.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class Day02_Tests
|
||||
{
|
||||
#region ResolvePart1
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolvePart1__Example()
|
||||
{
|
||||
IDay day02 = new Day02();
|
||||
|
||||
string result = day02.ResolvePart1(new string[] {
|
||||
"1-3 a: abcde",
|
||||
"1-3 b: cdefg",
|
||||
"2-9 c: ccccccccc",
|
||||
});
|
||||
|
||||
Assert.AreEqual("2", result);
|
||||
}
|
||||
|
||||
#endregion ResolvePart1
|
||||
|
||||
#region ResolvePart2
|
||||
|
||||
[TestMethod()]
|
||||
public void ResolvePart2__Example()
|
||||
{
|
||||
IDay day02 = new Day02();
|
||||
|
||||
string result = day02.ResolvePart2(new string[] {
|
||||
"1-3 a: abcde",
|
||||
"1-3 b: cdefg",
|
||||
"2-9 c: ccccccccc",
|
||||
});
|
||||
|
||||
Assert.AreEqual("1", result);
|
||||
}
|
||||
|
||||
#endregion ResolvePart1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user