예제 #1
0
            public void ValidatesArgs()
            {
                //Arrange
                var target = new AzureStorageFactory();

                //Act Assert
                Assert.That(() => target.GetAzureQueue <CloudQueueMessage>(null, "foo"), Throws.ArgumentNullException);
                Assert.That(() => target.GetAzureQueue <CloudQueueMessage>(mockAccount, string.Empty), Throws.ArgumentNullException);
            }
예제 #2
0
            public void Sucesss()
            {
                //Arrange
                var target = new AzureStorageFactory();

                //Act
                var result = target.GetAzureQueue <CloudQueueMessage>(mockAccount, "foo");

                //Assert
                Assert.IsNotNull(result);
            }