Simplify test
This commit is contained in:
@@ -10,9 +10,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart1__Example()
|
public void ResolvePart1__Example()
|
||||||
{
|
{
|
||||||
Day01 day01 = new Day01();
|
var day = new Day01();
|
||||||
|
|
||||||
string result = day01.ResolvePart1(new string[] {
|
string result = day.ResolvePart1(new string[] {
|
||||||
"1721",
|
"1721",
|
||||||
"979",
|
"979",
|
||||||
"366",
|
"366",
|
||||||
@@ -31,9 +31,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart2__Example()
|
public void ResolvePart2__Example()
|
||||||
{
|
{
|
||||||
Day01 day01 = new Day01();
|
var day = new Day01();
|
||||||
|
|
||||||
string result = day01.ResolvePart2(new string[] {
|
string result = day.ResolvePart2(new string[] {
|
||||||
"1721",
|
"1721",
|
||||||
"979",
|
"979",
|
||||||
"366",
|
"366",
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart1__Example()
|
public void ResolvePart1__Example()
|
||||||
{
|
{
|
||||||
IDay day02 = new Day02();
|
var day = new Day02();
|
||||||
|
|
||||||
string result = day02.ResolvePart1(new string[] {
|
string result = day.ResolvePart1(new string[] {
|
||||||
"1-3 a: abcde",
|
"1-3 a: abcde",
|
||||||
"1-3 b: cdefg",
|
"1-3 b: cdefg",
|
||||||
"2-9 c: ccccccccc",
|
"2-9 c: ccccccccc",
|
||||||
@@ -28,9 +28,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart2__Example()
|
public void ResolvePart2__Example()
|
||||||
{
|
{
|
||||||
IDay day02 = new Day02();
|
var day = new Day02();
|
||||||
|
|
||||||
string result = day02.ResolvePart2(new string[] {
|
string result = day.ResolvePart2(new string[] {
|
||||||
"1-3 a: abcde",
|
"1-3 a: abcde",
|
||||||
"1-3 b: cdefg",
|
"1-3 b: cdefg",
|
||||||
"2-9 c: ccccccccc",
|
"2-9 c: ccccccccc",
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using AdventOfCode2020;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
||||||
|
|
||||||
namespace AdventOfCode2020.Tests
|
namespace AdventOfCode2020.Tests
|
||||||
{
|
{
|
||||||
@@ -9,9 +8,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart1__Example()
|
public void ResolvePart1__Example()
|
||||||
{
|
{
|
||||||
IDay day03 = new Day03();
|
var day = new Day03();
|
||||||
|
|
||||||
string result = day03.ResolvePart1(new string[] {
|
string result = day.ResolvePart1(new string[] {
|
||||||
"..##.......",
|
"..##.......",
|
||||||
"#...#...#..",
|
"#...#...#..",
|
||||||
".#....#..#.",
|
".#....#..#.",
|
||||||
@@ -31,9 +30,9 @@ namespace AdventOfCode2020.Tests
|
|||||||
[TestMethod()]
|
[TestMethod()]
|
||||||
public void ResolvePart2__Example()
|
public void ResolvePart2__Example()
|
||||||
{
|
{
|
||||||
IDay day03 = new Day03();
|
var day = new Day03();
|
||||||
|
|
||||||
string result = day03.ResolvePart2(new string[] {
|
string result = day.ResolvePart2(new string[] {
|
||||||
"..##.......",
|
"..##.......",
|
||||||
"#...#...#..",
|
"#...#...#..",
|
||||||
".#....#..#.",
|
".#....#..#.",
|
||||||
|
|||||||
Reference in New Issue
Block a user