コード例 #1
0
        private static void Test(string[] postTimes, string[] showTimes, string expected)
        {
            var result       = ForumPostEasy.GetCurrentTime(postTimes, showTimes).Equals(expected) ? "PASS" : "FAIL";
            var postTimesCsv = string.Join(", ", postTimes);
            var showTimesCsv = string.Join(", ", showTimes);

            Console.WriteLine($"[{postTimesCsv}], [{showTimesCsv}] => {result}");
        }
コード例 #2
0
 public static string GetCurrentTime(string[] exactPostTime, string[] showPostTime)
 {
     return(ForumPostEasy.CurrentTime(exactPostTime, showPostTime));
 }