public void JsonArrayCopytoFunctionalTest() { int seed = 1; for (int i = 0; i < iterationCount / 10; i++) { seed++; Log.Info("Seed: {0}", seed); Random rndGen = new Random(seed); bool retValue = true; JsonArray sourceJson = SpecialJsonValueHelper.CreatePrePopulatedJsonArray(seed, arrayLength); JsonValue[] destJson = new JsonValue[arrayLength]; sourceJson.CopyTo(destJson, 0); for (int k = 0; k < destJson.Length; k++) { if (destJson[k] != sourceJson[k]) { retValue = false; } } Assert.True(retValue, "[JsonArrayCopytoFunctionalTest] JsonArray.CopyTo() failed to function properly. destJson.GetLength(0) = " + destJson.GetLength(0)); } }