Пример #1
0
        public void TestGetCreated()
        {
            // Arrange
            AzureBlobFileSystem provider = this.CreateAzureBlobFileSystem();

            provider.AddFile("1010/media.jpg", Stream.Null);

            // Act
            DateTimeOffset original = provider.GetCreated("1010/media.jpg");

            // Assert
            Assert.AreNotEqual(original, DateTimeOffset.MinValue);

            // Act
            provider.AddFile("1010/media.jpg", Stream.Null);
            DateTimeOffset updated = provider.GetCreated("1010/media.jpg");

            // Assert
            Assert.AreEqual(original, updated);
        }