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); }
public void Key_Set() { var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, true, ItemType.File); Assert.Equal(ValidKey, fileInfo.Key); }
public void Exists_Set(bool exists) { var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, exists, ItemType.File); Assert.Equal(exists, fileInfo.Exists); }
public void Provider_Type() { var fileInfo = new AmazonS3CabinetItemInfo(ValidKey, true, ItemType.File); Assert.Equal(AmazonS3CabinetConfig.ProviderType, fileInfo.ProviderType); }