Forum Xamarin.iOS

async unit testing

tofutimtofutim USUniversity ✭✭

Hi, is async unit testing in the UnitTestApp possible? I seem to be having big problems. For example

    public async Task Pass ()
        await Task.Delay (1000);
        Assert.True (true);

will trash the TouchRunner and it will be frozen.



  • tofutimtofutim USUniversity ✭✭

    found that i had to set [Timeout(Int32.MaxValue)]

  • IainSmithIainSmith GBUniversity ✭✭

    This was driving me nuts!!! but setting the timeout fixed it.


Sign In or Register to comment.