public void CheckParams_Test() { //set string[][] commands = new string[3][]; commands[0] = new string[] {}; commands[1] = new string[] {}; commands[2] = new string[] {}; bool[] expectedValue = new bool[3] { false, false, false }; commands[0] = "clear 2019".Split(' '); commands[1] = "purchase 2019-01-01 50 UAH".Split(' '); commands[2] = "report 2019-01-01 50 USD Beer".Split(' '); //act Executer executer = new Executer(); //assert for (int i = 0; i < 3; i++) { Assert.AreEqual(expectedValue[i], executer.CheckParams(commands[i])); } }