private void TestGetRelativeDirectoryPath(string basePath, string directoryPath, string expectedPath) { // This function should have been static, but it can't be changed now. PropPageUserControlBase page = new PropPageUserControlBase(); Microsoft_VisualStudio_Editors_PropertyPages_PropPageUserControlBaseAccessor accessor = new Microsoft_VisualStudio_Editors_PropertyPages_PropPageUserControlBaseAccessor(page); string result = accessor.GetRelativeDirectoryPath(basePath, directoryPath); Assert.AreEqual(expectedPath, result); }
public StandardTestsForPropertyPages(PropPageUserControlBase page) { _page = page; _accessor = new Microsoft_VisualStudio_Editors_PropertyPages_PropPageUserControlBaseAccessor(_page); }