From d6a78fb66e4227649acd68cd5b466b8d6b039a0f Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 7 Dec 2020 13:45:15 -0500 Subject: [PATCH] add int return type for template functions --- 2020/DayTemplate.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/2020/DayTemplate.cs b/2020/DayTemplate.cs index b91aed5..c432f36 100644 --- a/2020/DayTemplate.cs +++ b/2020/DayTemplate.cs @@ -9,16 +9,18 @@ namespace AdventOfCode { public class DayXX { - static void Part1() { + static int Part1() { + return -1; } - static void Part2() { + static int Part2() { + return -1; } - [Fact(Skip = "template")] + [Fact] public static void Test() { - Part1(); - Part2(); + Assert.Equal(-1, Part1()); + Assert.Equal(-1, Part2()); } } }