36 lines
852 B
C#
36 lines
852 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace AdventOfCode2018.Tests
|
|
{
|
|
[TestClass()]
|
|
public class Day03_Tests
|
|
{
|
|
[TestMethod()]
|
|
public void ResolveDay03__Test()
|
|
{
|
|
Day03 day03 = new Day03();
|
|
|
|
string result = day03.ResolveDay03(new string[] {
|
|
"#1 @ 1,3: 4x4",
|
|
"#2 @ 3,1: 4x4",
|
|
"#3 @ 5,5: 2x2",
|
|
});
|
|
|
|
Assert.AreEqual("4", result);
|
|
}
|
|
|
|
[TestMethod()]
|
|
public void ResolveDay03_Part2__Test()
|
|
{
|
|
Day03 day03 = new Day03();
|
|
|
|
string result = day03.ResolveDay03_Part2(new string[] {
|
|
"#1 @ 1,3: 4x4",
|
|
"#2 @ 3,1: 4x4",
|
|
"#3 @ 5,5: 2x2",
|
|
});
|
|
|
|
Assert.AreEqual("3", result);
|
|
}
|
|
}
|
|
} |