public void ShouldThrowIfContextIsNull() { // When var result = Assert.ThrowsException <ArgumentNullException>(() => AzureStorageAlias.DeleteBlob(null, null)); // Then Assert.AreEqual("context", result.ParamName); }
public void ShouldThrowIfSettingsAreNull() { // Given var context = Substitute.For <ICakeContext>(); // When var result = Assert.ThrowsException <ArgumentNullException>(() => AzureStorageAlias.DeleteBlob(context, null)); // Then Assert.AreEqual("settings", result.ParamName); }