ajCary
0
Q:

nunit using async method with throws

[Test]
public void Tests()
{  
	// Using a method as a delegate
	Assert.ThrowsAsync<ArgumentException>(async () => await MethodThatThrows());
}
0

New to Communities?

Join the community