Пример #1
0
 public virtual void SetUp()
 {
     fakeFileSystem     = new MockFileSystem();
     fakeBinaryFileUtil = new FakeBinaryFileUtil(fakeFileSystem);
     fakeBuildIdWriter  = new FakeBuildIdWriter(fakeFileSystem);
     fakeBuildIdWriter.WriteBuildId(SOURCE_FILEPATH, BUILD_ID);
     sourceSymbolFile = new FileReference(fakeFileSystem, SOURCE_FILEPATH);
     log = new StringWriter();
 }
        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();
        }