public void LoadResult_RestoresPaths() { SaveResult_ReplacesPaths(); ResetCache(); _cache.Initialize(Manifest, null); var result = _cache.ResultsCache.ResultsDictionary.Single().Value; result.ResultsByTarget.Count.Should().Be(1); var targetResult = result.ResultsByTarget.Values.Single(); targetResult.Items.Length.Should().Be(1); var item = targetResult.Items[0]; item.ItemSpec.Should().Be(Restored); }
private void InitNoBuildManager() { _cache = new BuildCache( new BazelContext.BazelLabel("wkspc", "pkg", "current"), _pathMapper.Object, _files.Object, null ! ); _cache.Initialize(DoesNotExist, null); _cache.Result.ConfigCache = _cache.ConfigCache; _cache.Manifest = new CacheManifest() { Projects = new Dictionary <string, string>() { ["foo"] = "foo" } }; }