public static void OutlineFile(IEditorShell editorShell, EditorTestFilesFixture fixture, string name) { string testFile = fixture.GetDestinationPath(name); string baselineFile = testFile + ".outline"; string text = fixture.LoadDestinationFile(name); OutlineRegionCollection rc = BuildOutlineRegions(editorShell, text); string actual = TextRangeCollectionWriter.WriteCollection(rc); if (_regenerateBaselineFiles) { baselineFile = Path.Combine(fixture.SourcePath, Path.GetFileName(testFile)) + ".outline"; TestFiles.UpdateBaseline(baselineFile, actual); } else { TestFiles.CompareToBaseLine(baselineFile, actual); } }
public static void OutlineFile(IServiceContainer services, EditorTestFilesFixture fixture, string name) { var testFile = fixture.GetDestinationPath(name); var baselineFile = testFile + ".outline"; var text = fixture.LoadDestinationFile(name); var rc = BuildOutlineRegions(services, text); var actual = TextRangeCollectionWriter.WriteCollection(rc); if (_regenerateBaselineFiles) { baselineFile = Path.Combine(fixture.SourcePath, Path.GetFileName(testFile)) + ".outline"; TestFiles.UpdateBaseline(baselineFile, actual); } else { TestFiles.CompareToBaseLine(baselineFile, actual); } }
public static void OutlineFile(EditorTestFilesFixture fixture, string name) { string testFile = fixture.GetDestinationPath(name); string baselineFile = testFile + ".outline"; string text = fixture.LoadDestinationFile(name); OutlineRegionCollection rc = BuildOutlineRegions(text); string actual = TextRangeCollectionWriter.WriteCollection(rc); if (_regenerateBaselineFiles) { // Update this to your actual enlistment if you need to update baseline string enlistmentPath = @"F:\RTVS\src\R\Editor\Test\Files"; baselineFile = Path.Combine(enlistmentPath, Path.GetFileName(testFile)) + ".outline"; TestFiles.UpdateBaseline(baselineFile, actual); } else { TestFiles.CompareToBaseLine(baselineFile, actual); } }
public EditorTreeInvalidateTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _coreShell = _exportProvider.GetExportedValue<ICoreShell>(); }
public DragDropTest(EditorTestFilesFixture files) { _files = files; }
public OutlineBuilderTest(EditorTestFilesFixture testFiles) { _testFiles = testFiles; }
public ROutlineBuilderTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _editorShell = _exportProvider.GetExportedValue <IEditorShell>(); _testFiles = testFiles; }
public ROutlineBuilderTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _editorShell = _exportProvider.GetExportedValue<IEditorShell>(); _testFiles = testFiles; }
public ProcessChangesTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles) { _exportProvider = exportProvider; _coreShell = _exportProvider.GetExportedValue <ICoreShell>(); }
public TokenizeSampleRdFilesTest(EditorTestFilesFixture files) { _files = files; }
public ProcessChangesTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _coreShell = _exportProvider.GetExportedValue<ICoreShell>(); }
public RBraceMatchTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); }
public GetFunctionInfoTest(EditorTestFilesFixture files) { _files = files; }
public RBraceMatchTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles) { _exportProvider = exportProvider; }
public ProcessChangesTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _coreShell = _exportProvider.GetExportedValue <ICoreShell>(); }
public EditorTreeInvalidateTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) { _exportProvider = catalogFixture.CreateExportProvider(); _coreShell = _exportProvider.GetExportedValue <ICoreShell>(); }
public EditorTreeInvalidateTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles) { _exportProvider = exportProvider; _coreShell = _exportProvider.GetExportedValue <ICoreShell>(); }
public ROutlineBuilderTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles) { _exportProvider = exportProvider; _editorShell = _exportProvider.GetExportedValue <IEditorShell>(); _testFiles = testFiles; }
public ROutlineBuilderTest(IServiceContainer services, EditorTestFilesFixture testFiles) { _services = services; _testFiles = testFiles; }
public ROutlineBuilderTest(IServiceContainer services, EditorTestFilesFixture testFiles) { _shell = services.GetService <ICoreShell>(); _testFiles = testFiles; }