public async Task SetAsyncRtf_ReturnsValueFromAsyncTask() { DataPackage dataPackage = new DataPackage(); dataPackage.SetAsyncRtf(async (formatId, deadline) => { await Task.Delay(200); return "Test RTF"; }); DataPackageView dataPackageView = dataPackage.GetView(); string result = await dataPackageView.GetRtfAsync(); Assert.AreEqual("Test RTF", result); }