public async Task<ArrayDO> TestArray(ArrayDO param) { return param; }
public void TestArray() { ArrayDO d = new ArrayDO(); d.Value = new []{1,2,3}; var task = service.TestArray(d); Assert.IsTrue(task.Wait(100)); Assert.AreEqual(d.Value.Length, task.Result.Value.Length); Assert.AreEqual(d.Value[0], task.Result.Value[0]); Assert.AreEqual(d.Value[1], task.Result.Value[1]); Assert.AreEqual(d.Value[2], task.Result.Value[2]); }
public async Task <ArrayDO> TestArray(ArrayDO param) { return(param); }