Ejemplo n.º 1
0
        public void VBReplaceTestLocalResource()
        {
            // Get Project object
            Project     testProject = (Project)(extensibility.Solution.Projects.Item(2));
            ProjectItem codeFile    = testProject.ProjectItems.Item("Test.vb");

            CommonMethods.CloseDocument(codeFile);
            CSharpHardCodedString hcs = new CSharpHardCodedString(codeFile, 40, 46);

            ExtractResourceActionTests.TestReplaceMethod(codeFile, "LocalResource.resx", hcs, TestStrings.WebApplicationLocalTestStringVB, "Test");
        }
Ejemplo n.º 2
0
        public void CSharpReplaceTestGlobalResource()
        {
            // Get Project object
            Project     testProject = (Project)(extensibility.Solution.Projects.Item(1));
            ProjectItem codeFile    = testProject.ProjectItems.Item("Test.cs");

            CommonMethods.CloseDocument(codeFile);
            CSharpHardCodedString hcs = new CSharpHardCodedString(codeFile, 307, 313);

            ExtractResourceActionTests.TestReplaceMethod(codeFile, "Global.resx", hcs, TestStrings.WebApplicationGlobalTestStringCSharp, "Test");
        }