[Test]//3 string[] stringArray; public void CheckStringArray() { /* * stringArray.push("test1"); * stringArray.push("rain"); * stringArray.push("in"); * stringArray.push("stays mainly"); * stringArray.push("in the plains"); */ TestUtility.CheckArrayItem(0, TestUtility.CheckValueFunction, variableList[3 + startInd], new TestUtility.CheckValues { parentName = "stringArray", value = "test1" }); TestUtility.CheckArrayItem(1, TestUtility.CheckValueFunction, variableList[3 + startInd], new TestUtility.CheckValues { parentName = "stringArray", value = "rain" }); TestUtility.CheckArrayItem(2, TestUtility.CheckValueFunction, variableList[3 + startInd], new TestUtility.CheckValues { parentName = "stringArray", value = "in" }); TestUtility.CheckArrayItem(3, TestUtility.CheckValueFunction, variableList[3 + startInd], new TestUtility.CheckValues { parentName = "stringArray", value = "stays mainly" }); TestUtility.CheckArrayItem(4, TestUtility.CheckValueFunction, variableList[3 + startInd], new TestUtility.CheckValues { parentName = "stringArray", value = "in the plains" }); }
[Test] ////4- string[] stringArray2; //Skipped second string at 4 //SimpleStruct[] arrayStruct; 5 public void TestArrayStruct() { TestUtility.CheckArrayItem(0, TestUtility.StructCheckFunction, variableList[5 + startInd], new TestUtility.CheckValues { parentName = "SimpleStruct", nameValues = new List <TestUtility.NameValues> { { new TestUtility.NameValues { Name = "simpleStructVal", Value = "10" } }, { new TestUtility.NameValues { Name = "simpleStructString", Value = "Test struct 1 in array" } } } }); TestUtility.CheckArrayItem(1, TestUtility.StructCheckFunction, variableList[5 + startInd], new TestUtility.CheckValues { parentName = "SimpleStruct", nameValues = new List <TestUtility.NameValues> { { new TestUtility.NameValues { Name = "simpleStructVal", Value = "20" } }, { new TestUtility.NameValues { Name = "simpleStructString", Value = "Test struct 2 in array" } } } }); TestUtility.CheckArrayItem(2, TestUtility.StructCheckFunction, variableList[5 + startInd], new TestUtility.CheckValues { parentName = "SimpleStruct", nameValues = new List <TestUtility.NameValues> { { new TestUtility.NameValues { Name = "simpleStructVal", Value = "30" } }, { new TestUtility.NameValues { Name = "simpleStructString", Value = "Test struct 3 in array" } } } }); }
[Test] //2- uint[] uintArray; public void CheckSimpleUintArray() { /* uintArray.push(12); * uintArray.push(14); * uintArray.push(15); */ TestUtility.CheckArrayItem(0, TestUtility.CheckValueFunction, variableList[2 + startInd], new TestUtility.CheckValues { parentName = "uintArray", value = "12" }); TestUtility.CheckArrayItem(1, TestUtility.CheckValueFunction, variableList[2 + startInd], new TestUtility.CheckValues { parentName = "uintArray", value = "14" }); TestUtility.CheckArrayItem(2, TestUtility.CheckValueFunction, variableList[2 + startInd], new TestUtility.CheckValues { parentName = "uintArray", value = "15" }); }