// fluent syntax subject.Invoking(y => y.Foo(null)) .Should().Throw(); // arrange-act-assert syntax Action callingFooWithNull = () => subject.Foo(null); callingFooWithNull.Should().Throw() .WithParameterName("message");