/// <summary> /// Adds an assertion to the specified fixture that an argument exception will be thrown with the specified parameter name. /// </summary> /// <param name="fixture">The fixture.</param> /// <param name="paramName">Name of the parameter.</param> /// <returns></returns> public static ITestFixture ShouldThrowArgumentException(this ITestFixture fixture, string paramName) => fixture.ShouldThrow <ArgumentException>(e => e.ParamName.Should().Be(paramName));