Info
Version: | 1.0.0.1 |
Author(s): | Lucian Wischik |
Last Update: | Wednesday, September 3, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/ljw1004/async-mr-flakey |
NuGet Url: | https://www.nuget.org/packages/AsyncMrFlakey |
Install
Install-Package AsyncMrFlakey
dotnet add package AsyncMrFlakey
paket add AsyncMrFlakey
AsyncMrFlakey Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
(1) Add the NuGet package
(2) On any async network call that might fail and you want to test, stick a call to the Flakey extension method.
For instance "Await DownloadAsync().Flakey()"
(3) For ad-hoc testing, put a call to MrFlakey.Start() somewhere e.g. in MainPage.xaml construction.
To stop using Mr Flakey, remove this call.
This way, every .Flakey() thing you await will give the tester the chance - within the app's UI - to simulate failure of the async operation.