public override string First() { string filename = GetFilename(); List <string> input = System.IO.File.ReadAllLines(filename).ToList(); var assessment = new AllergenAssessment(input); var result = assessment.Run(); return(result.ToString()); }
public override bool Test() { string filename = GetTestFilename(); List <string> input = System.IO.File.ReadAllLines(filename).ToList(); var assessment = new AllergenAssessment(input); var result = assessment.Run(); bool testSucceeded = result == 5; return(testSucceeded); }