using System.Collections.Generic;
public static class Question
public static double GetHighest(List<string> stringInputs, out List<int> integers, out List<double> doubles)
throw new NotImplementedException();
public static void Main()
Console.WriteLine("Testing Question 1...");
private static void TestQuestion1()
{"1", "3.2", "fivee", "1", "0.2", "-1", "2"},
new List<int>(){1, -1, 2},
new List<double>(){-1,0.2,1,2,3.2},
{"five", "two", "three", "2"},
{"five", "two", "three", ""},
{"10", "2.5", "10.0", "-99"},
new List<double>(){-99,2.5,10},
Console.WriteLine("Question 1 not implemented, skipping tests");
private static void Test1(List<string> stringInputs, List<int> expectedInts, List<double> expectedDoubles, double expectedResult, int testNumber)
var outInts = new List<int>();
var outDoubles = new List<double>();
var result = Question.GetHighest(stringInputs, out outInts, out outDoubles);
if (result != expectedResult || !outInts.SequenceEqual(expectedInts) || !outDoubles.SequenceEqual(expectedDoubles))
Console.WriteLine(string.Format("Test {0} failed test results", testNumber));
if(result != expectedResult)
Console.WriteLine(string.Format("Expected result {0}, but got {1}", expectedResult, result));
if(!outInts.SequenceEqual(expectedInts))
Console.WriteLine(string.Format("Expected int List {0}, but got {1}", string.Join(",", expectedInts.ToArray()), string.Join(",", outInts.ToArray())));
if(!outDoubles.SequenceEqual(expectedDoubles))
Console.WriteLine(string.Format("Expected double List {0}, but got {1}", string.Join(",", expectedDoubles.ToArray()), string.Join(",", outDoubles.ToArray())));
Console.WriteLine(string.Format("Test {0} Passed!", testNumber));