Dishant
Dishant

Reputation: 1595

Nunit Assert does not contain definition for DoesNotThrow

I am trying to write a UI test for my Xamarin Forms project, taking reference from this Github sample, I tried to use Assert.DoesNotThrow but am getting an error saying that Assert does not contain a definition for DoesNotThrow.

NUnit Version: 3.11.0

Is there anything that I am missing?

enter image description here

Upvotes: 0

Views: 1466

Answers (1)

Leszek L
Leszek L

Reputation: 76

Try using the 2.6.4 version of NUnit, as the version 3.x is not supported by the Xamarin.UITest. https://learn.microsoft.com/en-us/appcenter/test-cloud/uitest/

Upvotes: 1

Related Questions