Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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);
            }
        }
Example #4
0
        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);
            }
        }
Example #5
0
        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);
            }
        }
Example #6
0
 public EditorTreeInvalidateTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) {
     _exportProvider = catalogFixture.CreateExportProvider();
     _coreShell = _exportProvider.GetExportedValue<ICoreShell>();
 }
Example #7
0
 public DragDropTest(EditorTestFilesFixture files) {
     _files = files;
 }
Example #8
0
 public OutlineBuilderTest(EditorTestFilesFixture testFiles)
 {
     _testFiles = testFiles;
 }
Example #9
0
 public ROutlineBuilderTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles)
 {
     _exportProvider = catalogFixture.CreateExportProvider();
     _editorShell    = _exportProvider.GetExportedValue <IEditorShell>();
     _testFiles      = testFiles;
 }
Example #10
0
 public ROutlineBuilderTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) {
     _exportProvider = catalogFixture.CreateExportProvider();
     _editorShell = _exportProvider.GetExportedValue<IEditorShell>();
     _testFiles = testFiles;
 }
Example #11
0
 public ProcessChangesTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles)
 {
     _exportProvider = exportProvider;
     _coreShell      = _exportProvider.GetExportedValue <ICoreShell>();
 }
Example #12
0
 public TokenizeSampleRdFilesTest(EditorTestFilesFixture files)
 {
     _files = files;
 }
Example #13
0
 public ProcessChangesTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) {
     _exportProvider = catalogFixture.CreateExportProvider();
     _coreShell = _exportProvider.GetExportedValue<ICoreShell>();
 }
Example #14
0
 public RBraceMatchTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles)
 {
     _exportProvider = catalogFixture.CreateExportProvider();
 }
Example #15
0
 public GetFunctionInfoTest(EditorTestFilesFixture files)
 {
     _files = files;
 }
Example #16
0
 public RBraceMatchTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles) {
     _exportProvider = catalogFixture.CreateExportProvider();
 }
Example #17
0
 public RBraceMatchTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles)
 {
     _exportProvider = exportProvider;
 }
 public OutlineBuilderTest(EditorTestFilesFixture testFiles) {
     _testFiles = testFiles;
 }
Example #19
0
 public DragDropTest(EditorTestFilesFixture files)
 {
     _files = files;
 }
Example #20
0
 public ProcessChangesTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles)
 {
     _exportProvider = catalogFixture.CreateExportProvider();
     _coreShell      = _exportProvider.GetExportedValue <ICoreShell>();
 }
Example #21
0
 public EditorTreeInvalidateTest(REditorMefCatalogFixture catalogFixture, EditorTestFilesFixture testFiles)
 {
     _exportProvider = catalogFixture.CreateExportProvider();
     _coreShell      = _exportProvider.GetExportedValue <ICoreShell>();
 }
Example #22
0
 public EditorTreeInvalidateTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles)
 {
     _exportProvider = exportProvider;
     _coreShell      = _exportProvider.GetExportedValue <ICoreShell>();
 }
Example #23
0
 public ROutlineBuilderTest(IExportProvider exportProvider, EditorTestFilesFixture testFiles)
 {
     _exportProvider = exportProvider;
     _editorShell    = _exportProvider.GetExportedValue <IEditorShell>();
     _testFiles      = testFiles;
 }
Example #24
0
 public ROutlineBuilderTest(IServiceContainer services, EditorTestFilesFixture testFiles)
 {
     _services  = services;
     _testFiles = testFiles;
 }
Example #25
0
 public ROutlineBuilderTest(IServiceContainer services, EditorTestFilesFixture testFiles)
 {
     _shell     = services.GetService <ICoreShell>();
     _testFiles = testFiles;
 }