Day07 part 1 statement and failing test.
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
<Compile Include="Day04_Tests.cs" />
|
||||
<Compile Include="Day05_Tests.cs" />
|
||||
<Compile Include="Day06_Tests.cs" />
|
||||
<Compile Include="Day07_Tests.cs" />
|
||||
<Compile Include="GuardEvent_Tests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
32
AdventOfCode2018.Tests/Day07_Tests.cs
Normal file
32
AdventOfCode2018.Tests/Day07_Tests.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AdventOfCode2018;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AdventOfCode2018.Tests
|
||||
{
|
||||
[TestClass()]
|
||||
public class Day07_Tests
|
||||
{
|
||||
[TestMethod()]
|
||||
public void ResolvePart1__Test()
|
||||
{
|
||||
Day07 day07 = new Day07();
|
||||
|
||||
string result = day07.ResolvePart1(new string[] {
|
||||
"Step C must be finished before step A can begin.",
|
||||
"Step C must be finished before step F can begin.",
|
||||
"Step A must be finished before step B can begin.",
|
||||
"Step A must be finished before step D can begin.",
|
||||
"Step B must be finished before step E can begin.",
|
||||
"Step D must be finished before step E can begin.",
|
||||
"Step F must be finished before step E can begin.",
|
||||
});
|
||||
|
||||
Assert.AreEqual("CABDFE", result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user