public void ShouldThrowIfContextIsNull()
            {
                // When
                var result = Assert.ThrowsException <ArgumentNullException>(() =>
                                                                            AzureStorageAlias.UploadFileToBlob(null, null, null));

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

                // Then
                Assert.AreEqual("settings", result.ParamName);
            }
            public void ShouldThrowIfFileToUploadIsNull()
            {
                // Given
                var context  = Substitute.For <ICakeContext>();
                var settings = new AzureStorageSettings {
                    AccountName   = "test",
                    Key           = "test",
                    ContainerName = "test",
                    BlobName      = "test"
                };

                // When
                var result = Assert.ThrowsException <ArgumentNullException>(() =>
                                                                            AzureStorageAlias.UploadFileToBlob(context, settings, null));

                // Then
                Assert.AreEqual("fileToUpload", result.ParamName);
            }