public void IsExpired_WhenOtherVersion_ReturnsTrue()
        {
            //Arrange
            var cacheIndex = new CacheIndex();
            var xapName = Guid.NewGuid().ToString();
            var version = new Version(1, 0);
            var otherVersion = new Version(1, 1);

            //Act
            cacheIndex.Add(xapName, version);


            //Assert
            Assert.IsTrue(cacheIndex.IsExpired(xapName, otherVersion));
        }
        public void Remove_WhenNewXapFile_ReturnsTrue()
        {
            //Arrange
            var cacheIndex = new CacheIndex();
            var xapName = Guid.NewGuid().ToString();
            var version = new Version(1, 0);

            //Act
            cacheIndex.Add(xapName, version);
            cacheIndex.Remove(xapName);

            //Assert
            Assert.IsTrue(cacheIndex.IsExpired(xapName, version));
        }
        public void IsExpired_WhenNewXapFile_ReturnsTrue()
        {
            //Arrange
            var cacheIndex = new CacheIndex();

            //Act

            //Assert
            Assert.IsTrue(cacheIndex.IsExpired(string.Empty, new Version(0, 0)));
        }