Simplify test

This commit is contained in:
2020-12-04 21:29:12 +01:00
parent d7bed42f11
commit bec454e853
3 changed files with 13 additions and 14 deletions

View File

@@ -10,9 +10,9 @@ namespace AdventOfCode2020.Tests
[TestMethod()]
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",
"979",
"366",
@@ -31,9 +31,9 @@ namespace AdventOfCode2020.Tests
[TestMethod()]
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",
"979",
"366",

View File

@@ -10,9 +10,9 @@ namespace AdventOfCode2020.Tests
[TestMethod()]
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 b: cdefg",
"2-9 c: ccccccccc",
@@ -28,9 +28,9 @@ namespace AdventOfCode2020.Tests
[TestMethod()]
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 b: cdefg",
"2-9 c: ccccccccc",

View File

@@ -1,5 +1,4 @@
using AdventOfCode2020;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AdventOfCode2020.Tests
{
@@ -9,9 +8,9 @@ namespace AdventOfCode2020.Tests
[TestMethod()]
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()]
public void ResolvePart2__Example()
{
IDay day03 = new Day03();
var day = new Day03();
string result = day03.ResolvePart2(new string[] {
string result = day.ResolvePart2(new string[] {
"..##.......",
"#...#...#..",
".#....#..#.",