public void SetExpiryDateBySecondsWorksWithNull()
        {
            CloudStorageToken token = new CloudStorageToken();

            token.SetExpiryDateBySecondsFromNow(null);

            Assert.IsNull(token.ExpiryDate);
        }
        public void SetExpiryDateBySecondsWorksWithVeryShortPeriod()
        {
            CloudStorageToken token = new CloudStorageToken();

            token.SetExpiryDateBySecondsFromNow(8);

            Assert.IsNotNull(token.ExpiryDate);
            Assert.IsTrue(token.ExpiryDate > DateTime.UtcNow);
            Assert.IsTrue(token.ExpiryDate < DateTime.UtcNow.AddSeconds(8));
        }
        public void SetExpiryDateBySecondsWorks()
        {
            CloudStorageToken token = new CloudStorageToken();

            token.SetExpiryDateBySecondsFromNow(375);

            Assert.IsNotNull(token.ExpiryDate);
            Assert.IsTrue(token.ExpiryDate > DateTime.UtcNow);
            Assert.IsTrue(token.ExpiryDate < DateTime.UtcNow.AddSeconds(375));
        }