protected override async Task <ISymbolStore> GetStoreWithFileAsync()
        {
            var store = new StructuredSymbolStore(fakeFileSystem, STORE_PATH);
            await store.AddFileAsync(sourceSymbolFile, FILENAME, BUILD_ID);

            return(store);
        }
        public void DeepEquals_NotEqual()
        {
            var storeA = new StructuredSymbolStore(fakeFileSystem, STORE_PATH);
            var storeB = new StructuredSymbolStore(fakeFileSystem, STORE_PATH_B);

            Assert.False(storeA.DeepEquals(storeB));
            Assert.False(storeB.DeepEquals(storeA));
        }
        public async Task FindFile_InvalidStoreAsync()
        {
            var store = new StructuredSymbolStore(fakeFileSystem, INVALID_PATH);

            var fileReference = await store.FindFileAsync(FILENAME, BUILD_ID, true, log);

            Assert.Null(fileReference);
            StringAssert.Contains(Strings.FailedToSearchStructuredStore(INVALID_PATH, FILENAME, ""),
                                  log.ToString());
        }
Ejemplo n.º 4
0
        public void SetUp()
        {
            fakeFileSystem     = new MockFileSystem();
            fakeBinaryFileUtil = new FakeBinaryFileUtil(fakeFileSystem);
            httpClient         = new HttpClient(new FakeHttpMessageHandler());
            crashReportClient  = Substitute.For <ICrashReportClient>();

            var store = new StructuredSymbolStore(fakeFileSystem, INITIALIZED_STORE);

            store.AddMarkerFileIfNeeded();

            fakeFileSystem.AddFile(Path.Combine(STADIA_STORE, StadiaSymbolStore.MarkerFileName),
                                   new MockFileData(""));
            pathParser = new SymbolPathParser(fakeFileSystem, fakeBinaryFileUtil, httpClient,
                                              crashReportClient, null, null);
            logSpy = new LogSpy();
            logSpy.Attach();
        }