Answers for "nunit using async method with throws"

0

nunit using async method with throws

[Test]
public void Tests()
{  
	// Using a method as a delegate
	Assert.ThrowsAsync<ArgumentException>(async () => await MethodThatThrows());
}
Posted by: Guest on April-01-2020

Browse Popular Code Answers by Language