public void GivenMissingCapabilityMapThenExceptionMustBeThrown() { var assessmentItems = CreateAssessmentWithResponses(); var capabilityMap = new List<Tuple<int, int, int>>(); AssessmentScorer scorer = new AssessmentScorer(capabilityMap); var result = scorer.CalculateScore(assessmentItems); Assert.IsTrue(result.DimensionResults.First().Levels.First().Level == 1); }
private static AssessmentScorer CreateScorer() { var capabilityMap = new List<Tuple<int, int, int>>(); capabilityMap.Add(new Tuple<int, int, int>(1, 1, 2)); capabilityMap.Add(new Tuple<int, int, int>(1, 2, 3)); capabilityMap.Add(new Tuple<int, int, int>(2, 1, 1)); AssessmentScorer scorer = new AssessmentScorer(capabilityMap); return scorer; }