public async void RunAsyncTEST(string data) { var CmpValue = await TaskRunTemplate.RunAsync( () => { return(data); } ); Assert.Equal(data, CmpValue); }
public void RunAsyncTEST(string data) { var CmpValue = TaskRunTemplate.RunAsync( () => { return(data); } ).Result; Assert.AreEqual(data, CmpValue); }