No announcements
Found 1739267 threads
-
1 Votes
Unit Testing Async Methods in Studio 2013 on 8.1
Will this still work if my async method just returns Task?Answered | 8 Replies | 9996 Views | Created by Sparksteam - Tuesday, November 19, 2013 11:15 PM | Last reply by Andrei Muraru - Friday, October 10, 2014 7:39 AM -
2 Votes
Unit Testing Background Tasks, WinMD, and Async methods
In Consumer Preview there is a support for async test methods.Answered | 2 Replies | 5814 Views | Created by Jason Grimme - Wednesday, April 25, 2012 4:01 AM | Last reply by Vikram Agrawal - Thursday, May 3, 2012 6:34 PM -
0 Votes
UnitTest for async Method - with Debugging
This issue is caused because your method is async void.Answered | 2 Replies | 2994 Views | Created by HereAndNowAsAlways - Wednesday, September 25, 2019 10:42 PM | Last reply by HereAndNowAsAlways - Wednesday, October 16, 2019 5:18 PM -
0 Votes
how to set background task project as Winmd output type?
how to set background task project as Winmd output type?Answered | 2 Replies | 1735 Views | Created by Chetan shamdasani - Thursday, October 11, 2012 4:47 PM | Last reply by Chetan shamdasani - Friday, October 12, 2012 4:24 AM -
1 Votes
Questions on async and sync's unit tests
We will write twice for both async and sync if do this.Answered | 2 Replies | 1341 Views | Created by letitbe - Tuesday, March 3, 2015 9:55 AM | Last reply by letitbe - Wednesday, March 4, 2015 2:43 AM -
4 Votes
What's the difference between async Task<T> method and Task<T> method.
If you don't put async keyword in the method signatures which returns Task or Task<T>, you wouldn't be able to use await keyword ...Answered | 4 Replies | 4783 Views | Created by CrazyOldPotato - Friday, April 21, 2017 8:23 AM | Last reply by Sabah Shariq - Friday, April 21, 2017 11:50 AM -
1 Votes
How to Unit Test this Method?
Besides, if you want your unit test coverage to include the 2 parameter version you'll be back in square one.Answered | 8 Replies | 3324 Views | Created by Dynamic - Thursday, September 10, 2009 9:24 AM | Last reply by Wole Ogunremi - Thursday, September 10, 2009 3:13 PM -
0 Votes
Unit test for protected methods
Hello, You can also refer to this article: http://msdn.microsoft.com/en-us/library/bb385974.aspx Usually you just need to right-click the test ...Answered | 2 Replies | 11518 Views | Created by Tania A - Thursday, December 9, 2010 12:26 PM | Last reply by Edwer Fang - Monday, December 13, 2010 7:49 AM -
2 Votes
Unit Testing Dataflow Based Components
This very much simplifies unit testing as I no longer have to wait on async tasks.Answered | 4 Replies | 4856 Views | Created by Dan Harman - Wednesday, August 29, 2012 11:29 AM | Last reply by Dan Harman - Saturday, September 15, 2012 10:04 PM -
0 Votes
Task and or async method with UI updates ?
Can you please show the code behind the LoadSeries or can you tell me the namespace for it if that is .NET method?Answered | 11 Replies | 1310 Views | Created by justinmct - Wednesday, October 16, 2013 8:22 PM | Last reply by justinmct - Monday, October 21, 2013 9:28 AM -
1 Votes
Doing Nothing in Async Methods
Actually, my real preference is an empty async method, as stated previously.Answered | 12 Replies | 29444 Views | Created by Dave Sexton - Thursday, April 19, 2012 4:21 AM | Last reply by Dave Sexton - Monday, April 23, 2012 1:54 PM -
1 Votes
Async for Windows Phone break a marketplace validation rule if used in a background task
The Async CTP has been updated to work with Windows Phone background agents.Answered | 4 Replies | 8593 Views | Created by dag1122 - Thursday, August 25, 2011 2:18 PM | Last reply by Morten Nielsen - Friday, November 18, 2011 5:41 PM -
0 Votes
Background Tasks in Web Performance Testing
However, I am interested to know what background tasks it performs without being prompted by calls on the website.Answered | 3 Replies | 988 Views | Created by JasonLai1991 - Thursday, September 4, 2014 6:14 AM | Last reply by dwate88 - Friday, September 5, 2014 8:32 AM -
1 Votes
Create suspended task from async method?
{ task.Start(); await task; }).Answered | 1 Replies | 5916 Views | Created by Eric99929 - Wednesday, May 30, 2012 12:50 AM | Last reply by svick - Wednesday, May 30, 2012 10:19 AM -
2 Votes
Why a Async method return type must be void or Task or Task<T>
Hi Sudip_inn, The return value type needs to be Task<string>, but we can get a normal string when we call this method.Answered | 6 Replies | 1434 Views | Created by Sudip_inn - Monday, October 19, 2020 7:38 PM | Last reply by Timon Yang - Wednesday, October 21, 2020 7:20 AM -
0 Votes
Is there a pattern for wrapping existing BeginXXX/EndXXX async methods into async tasks?
In .NET 4, the Task Parallel Library includes a built in wrapper for the APM pattern (Begin/End): Task.Factory.FromAsync.Answered | 1 Replies | 11868 Views | Created by SimonGuard - Friday, October 29, 2010 12:33 AM | Last reply by Stephen Toub - MSFT - Friday, October 29, 2010 1:30 AM -
10 Votes
await async task
1) https://stackoverflow.com/questions/26534288/how-to-deal-with-synchronous-method-task-using-async-await 2) ...Answered | 26 Replies | 3553 Views | Created by Markus Freitag - Tuesday, March 27, 2018 4:30 PM | Last reply by Konstantinos pap - Tuesday, April 10, 2018 7:36 PM -
0 Votes
Unit testing a method that calls a base class method
Unit tests give developers and testers a quick way to check for logic errors in the methods of classes in C#, Visual Basic .NET, and C++ projects.Answered | 2 Replies | 5018 Views | Created by witdaj - Tuesday, October 30, 2012 8:40 PM | Last reply by Amanda Zhu - Thursday, November 1, 2012 8:13 AM -
0 Votes
Unit testing XAML code behind
I believe that Visual C++ unit test method against Windows Store app can’t be run on UI thread because Unit test is used to test a ...Answered | 13 Replies | 4185 Views | Created by Minu7 - Friday, May 16, 2014 2:16 PM | Last reply by Amanda Zhu - Tuesday, May 27, 2014 8:13 AM -
1 Votes
How to use task with background task
{ // Do something here }).AsAsyncAction(); } Can Bilgin Blog CompuSightAnswered | 1 Replies | 4370 Views | Created by shaharPO - Tuesday, November 20, 2012 10:42 PM | Last reply by Can Bilgin - Tuesday, November 20, 2012 11:19 PM - Items 1 to 20 of 1739267 Next ›
No announcements