Wrote further unit tests

This commit is contained in:
Lukasz Baldyga committed 2020-10-24 09:28:37 +01:00
1 parent 0dcac3f12b
commit 79127c80d7
2 files changed
+88 -6

No files matched your search

@@ -13,6 +13,8 @@ namespace Advanced_Software_Engineering {
Dictionary<string, string[]> commandAndParameters = SettingsAndHelperFunctions.CommandAndParameterParser(fullCommand);
if (!commandAndParameters.Keys.Contains("command")) throw new Exception("There is no command to process");
string command = commandAndParameters["command"][0];
string[] parameters = commandAndParameters.Keys.Contains("parameters") ? commandAndParameters["parameters"] : new string[] { };