Code formatting and warning fixing.
This commit is contained in:
@@ -5,9 +5,9 @@ public class Day07_Tests
|
||||
[Fact]
|
||||
public void ResolvePart1__Example()
|
||||
{
|
||||
var day = new Day07();
|
||||
Day07 day = new Day07();
|
||||
|
||||
string result = day.ResolvePart1(new[] {
|
||||
string result = day.ResolvePart1([
|
||||
"light red bags contain 1 bright white bag, 2 muted yellow bags.",
|
||||
"dark orange bags contain 3 bright white bags, 4 muted yellow bags.",
|
||||
"bright white bags contain 1 shiny gold bag.",
|
||||
@@ -17,7 +17,7 @@ public class Day07_Tests
|
||||
"vibrant plum bags contain 5 faded blue bags, 6 dotted black bags.",
|
||||
"faded blue bags contain no other bags.",
|
||||
"dotted black bags contain no other bags.",
|
||||
});
|
||||
]);
|
||||
|
||||
Assert.Equal("4", result);
|
||||
}
|
||||
@@ -25,9 +25,9 @@ public class Day07_Tests
|
||||
[Fact]
|
||||
public void ResolvePart2__Example()
|
||||
{
|
||||
var day = new Day07();
|
||||
Day07 day = new Day07();
|
||||
|
||||
string result = day.ResolvePart2(new[] {
|
||||
string result = day.ResolvePart2([
|
||||
"shiny gold bags contain 2 dark red bags.",
|
||||
"dark red bags contain 2 dark orange bags.",
|
||||
"dark orange bags contain 2 dark yellow bags.",
|
||||
@@ -35,7 +35,7 @@ public class Day07_Tests
|
||||
"dark green bags contain 2 dark blue bags.",
|
||||
"dark blue bags contain 2 dark violet bags.",
|
||||
"dark violet bags contain no other bags.",
|
||||
});
|
||||
]);
|
||||
|
||||
Assert.Equal("126", result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user