public void Content_ReturnsContent()
        {
            var paths = new List <string> {
                "a-path.css"
            };
            var reader = new MemoryAssetReader(paths, "test-content");

            Assert.That(reader.Content, Is.EqualTo("test-content"));
        }
        public void Constructor_FilePaths_SetsAssociatedFilePaths()
        {
            var paths = new List <string> {
                "a-path.css"
            };
            var reader = new MemoryAssetReader(paths, "content");

            Assert.That(reader.AssociatedFilePaths.Any());
            Assert.That(reader.AssociatedFilePaths.Count(), Is.EqualTo(1));
            Assert.That(reader.AssociatedFilePaths.First(), Is.EqualTo("a-path.css"));
        }
        public void GetHashCode_DifferentPaths_ReturnsUnique()
        {
            var paths1 = new List <string> {
                "patha.css", "pathb.css"
            };
            var reader1 = new MemoryAssetReader(paths1, "content");
            var paths2  = new List <string> {
                "patha.css", "pathc.css"
            };
            var reader2 = new MemoryAssetReader(paths2, "content");

            Assert.That(reader1.GetHashCode(), Is.Not.EqualTo(reader2.GetHashCode()));
        }
        public void GetHashCode_SamePathAndContent_ReturnsIdentical()
        {
            var paths1 = new List <string> {
                "patha.css", "pathb.css"
            };
            var reader1 = new MemoryAssetReader(paths1, "content");
            var paths2  = new List <string> {
                "patha.css", "pathb.css"
            };
            var reader2 = new MemoryAssetReader(paths2, "content");

            Assert.That(reader1.GetHashCode(), Is.EqualTo(reader2.GetHashCode()));
        }