We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c948a8 commit d9d9accCopy full SHA for d9d9acc
src/Tests/Framework/Configuration/YamlConfiguration.cs
@@ -30,7 +30,14 @@ public YamlConfiguration(string configurationFile)
30
31
private static string ConfigName(string configLine) => Parse(configLine, 0);
32
private static string ConfigValue(string configLine) => Parse(configLine, 1);
33
- private static string Parse(string configLine, int index) => configLine.Split(':')[index].Trim(' ');
+ private static string Parse(string configLine, int index)
34
+ {
35
+ var configParts = configLine.Split(':');
36
+
37
+ return configParts.Length - 1 >= index
38
+ ? configParts[index].Trim(' ')
39
+ : string.Empty;
40
+ }
41
42
private static TestMode GetTestMode(string mode)
43
{
0 commit comments