public async void DrawCaptchaFileTest() { var captcha = string.Empty; RandomUtility.Run(r => { captcha = _captchas[r.Next(0, _captchas.Length)]; }); var saveFile = "captcha.png".AsFilePathCombiner(_service.Dependency.ResourceDirectory); var result = await _service.DrawFileAsync(captcha, saveFile).ConfigureAwait(); Assert.True(result); }