Simple build cache which only stores build outputs until the process is running
Inheritance: IBuildCache, IDisposable
Beispiel #1
0
        public void SetUp()
        {
            cache = new MemoryBuildCache();
            T = new BuildKey(typeof(IBuilder), "test");
            root = new TestFileSystemDirectory("root");           

            fingerprint = new Mock<IDependencyFingerprint>();
            otherFingerprint = new Mock<IDependencyFingerprint>();

            fingerprint.Setup(f => f.Equals(fingerprint.Object)).Returns(true);
            fingerprint.Setup(f => f.Equals(otherFingerprint.Object)).Returns(false);

            otherFingerprint.Setup(f => f.Equals(fingerprint.Object)).Returns(false);
            otherFingerprint.Setup(f => f.Equals(otherFingerprint.Object)).Returns(true);
        }