public void ResolveRelativePathPrefixed() { // Arrange AzureBlobFileSystem provider = this.CreateAzureBlobFileSystem(); // Act string actual = provider.GetRelativePath($"{this.ContainerName}/1010/image.jpg"); // Assert Assert.AreEqual($"/{this.ContainerName}/1010/image.jpg", actual); }
public void ResolveRelativePath() { // Arrange AzureBlobFileSystem provider = this.CreateAzureBlobFileSystem(); // Act string actual = provider.GetRelativePath("1010/media.jpg"); // Assert Assert.AreEqual("/media/1010/media.jpg", actual); }
public void ResolveRelativePathWithAppVirtualPath() { // Arrange AzureBlobFileSystem provider = this.CreateAzureBlobFileSystem(false, "/test"); // Act string actual = provider.GetRelativePath("1010/image.jpg"); // Assert Assert.AreEqual($"/test/{this.ContainerName}/1010/image.jpg", actual); }