Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.