Some community solutions Community solutions for Tracks on Tracks on Tracks in C# on Exercism will fail with IndexOutOfRangeException for the IsExciting function. Adding a testcase to improve it.
Can you elaborate on how adding such a test might help improve student outcomes with lists specifically? That info will help the C# track maintainer with your feedback.
depends on the implementation, e.g.
public static bool IsExciting(List<string> languages) =>
languages.Count > 0 && (languages[0] == "C#" ||
(languages[1] == "C#" && (languages.Count is >= 2 and <= 3)));
The current test cases pass with this implementation(as most community solution). But with language = new List<string> { "F#"}, as a new testcase, languages[1] throws System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)
tracks-on-tracks-on-tracks is a concept exercise. Does this change substantially aid in teaching about the concepts of lists and generic-types?