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