public void GivenANullReference_If_ShouldThrowAnException() { Action action = () => ObjectFluentExtensions.If <object>(null, true, o => o); action.Should().Throw <ArgumentNullException>(); }
public void GivenANullReference_FluentAdapter_ShouldThrowAnException() { Action action = () => ObjectFluentExtensions.FluentAdapter <object>(null, () => { }); action.Should().Throw <ArgumentNullException>(); }