コード例 #1
0
 public void GetResourceReferenceTest()
 {
     ResourceFile resFile = resources["Resource1.resx"];
     VBHardCodedString hcs = new VBHardCodedString(this.codeFile, 157, 172);
     IExtractResourceAction action = new GenericVBExtractResourceAction();
     Assert.AreEqual("My.Resources.Resource1.Test", action.GetResourceReference(resFile, "Test", null), "GetResourceReference does not work correctly in VB");
 }
コード例 #2
0
 public void FixtureSetup()
 {
     this.extensibility = SharedEnvironment.Instance;
     // Get Project object
     Project testProject = (Project)(extensibility.Solution.Projects.Item(2));
     IExtractResourceAction action = new GenericVBExtractResourceAction();
     this.codeFile = testProject.ProjectItems.Item("Form1.vb");
     CommonMethods.CloseDocument(codeFile);
     resources = new ResourceFileCollection(testProject, new FilterMethod(action.IsValidResourceFile));
 }