public void ReturnsCorrectFilePathForFilePath(string path, string expected) { // Given MetadataDictionary initialMetadata = new MetadataDictionary(); MetadataStack metadata = new MetadataStack(initialMetadata); // When metadata = metadata.Clone(new[] { new KeyValuePair <string, object>("A", new FilePath(path)) }); object result = metadata.FilePath("A"); // Then Assert.IsInstanceOf <FilePath>(result); Assert.AreEqual(expected, ((FilePath)result).FullPath); }
public FilePath FilePath(string key, FilePath defaultValue = null) => _metadata.FilePath(key, defaultValue);