public void FindSourceMaps_ThrowsArgumentNullException_IfNullPathSupplied()
        {
            var wrapper = new Mock<IFileSystemWrapper>();
            var discoverer = new SourceMapDiscoverer(wrapper.Object);

            Assert.Throws(typeof(ArgumentNullException), () => discoverer.FindSourceMap(null));
        }
        public void FindSourceMaps_ReturnsNull_IfNoMapFileExists()
        {
            var wrapper = new Mock<IFileSystemWrapper>();
            wrapper
                .Setup(x => x.FileExists("absolute.path.map"))
                .Returns(false);

            var discoverer = new SourceMapDiscoverer(wrapper.Object);
            Assert.Null(discoverer.FindSourceMap("absolute.path"));
        }
        public void FindSourceMaps_ReturnsPath_IfFileWithMapSuffixExists()
        {
            var wrapper = new Mock<IFileSystemWrapper>();
            wrapper
                .Setup(x => x.FileExists("absolute.path.map"))
                .Returns(true);

            var discoverer = new SourceMapDiscoverer(wrapper.Object);
            Assert.Equal("absolute.path.map", discoverer.FindSourceMap("absolute.path"));
        }