예제 #1
0
        public void LastModified_Set(string date)
        {
            DateTime?lastModified = String.IsNullOrWhiteSpace(date) ? null : (DateTime?)DateTime.Parse(date);

            var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, true, ItemType.File)
            {
                LastModifiedUtc = lastModified
            };

            Assert.Equal(lastModified, fileInfo.LastModifiedUtc);
        }
예제 #2
0
        public void Key_Set()
        {
            var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, true, ItemType.File);

            Assert.Equal(ValidKey, fileInfo.Key);
        }
예제 #3
0
        public void Exists_Set(bool exists)
        {
            var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, exists, ItemType.File);

            Assert.Equal(exists, fileInfo.Exists);
        }
예제 #4
0
        public void Provider_Type()
        {
            var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, true, ItemType.File);

            Assert.Equal(AmazonS3CabinetConfig.ProviderType, fileInfo.ProviderType);
        }