public void Should_Throw_If_Settings_Is_Null() { // Given ICakeContext context = Mock.Of <ICakeContext>(); // When Action action = () => OpenshiftAliases.OpenshiftDelete(context, null); // Then action.Should().Throw <ArgumentNullException>() .Which.ParamName.Should().Be("settings"); }
public void Should_Throw_If_Context_Is_Null() { // Given ICakeContext context = null; // When Action action = () => OpenshiftAliases.OpenshiftDelete(context, new OpenshiftDeleterSettings()); // Then action.Should().Throw <ArgumentNullException>() .Which.ParamName.Should().Be("context"); }