Пример #1
0
        public void When_uploading_file_should_throw_ArgumentNullException_if_IBlobStorageClient_is_null()
        {
            IBlobStorageClient blobStorageClient = null;
            var ex = Assert.Throws <ArgumentNullException>(() => blobStorageClient.UploadFile("SomeFile.txt", BlobName));

            Assert.IsNotNull(ex);
            Assert.AreEqual(ex.ParamName, "blobStorageClient");
        }