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

    [Test]
    public async Task Pass ()
    {
        await Task.Delay (1000);
        Assert.True (true);
    }

will trash the TouchRunner and it will be frozen.

Tagged:

Answers

  • tofutimtofutim USUniversity ✭✭

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

  • IainSmithIainSmith GBUniversity ✭✭

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

    Cheers!

Sign In or Register to comment.