src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// MyExtEditCustomDataXml - Scenario 12: Two ID attributes.
/// </summary>
Scenario 12: Two ID attributes.
Scenario 12 : Two ID attributes .
[TestMethod()]
        public void MyExtEditCustomDataXmlScenario12()
        {
            Mock<Template> myExtEditCustomDataXmlScenario12TemplateMock = Util.CreateTemplateMock(
                "MyExtEditCustomDataXmlScenario12",
                "Extension template for MyExtEditCustomDataXml test case, Scenario 12. Two ID attributes.",
                "C:\\Documents and Settings\\huyn\\Application Data\\Microsoft\\VisualStudio\\11.0\\ItemTemplatesCache\\Visual Basic\\MyExtEditCustomDataXmlScenario12.zip\\MyExtEditCustomDataXmlScenario12.vstemplate",
                "MyExtEditCustomDataXmlScenario12.vb",
                "<VBMyExtensionTemplate ID=\"My.MyExtEditCustomDataXmlScenario12\" ID=\"My.MyExtEditCustomDataXmlScenario12a\" Version=\"1.0.0.0\" AssemblyFullName=\"Microsoft.VisualBasic.FX3.5Extensions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\"/>");
            Mock<Project> projectMock = CreateProjectMock(PROJECTKIND_VB, CUSTOMDATASIGNATURE_VB,
                new Mock<Template>[] { myExtEditCustomDataXmlScenario12TemplateMock });
            MyExtensibilitySettings extSettings = new MyExtensibilitySettings("NotExistedPath");
            List<MyExtensionTemplate> extensionTemplates = extSettings.GetExtensionTemplates(PROJECTKIND_VB, projectMock.Instance);
            Assert.IsNull(extensionTemplates, "Should not get any extension templates!");
        }
[ TestMethod ( ) ] public void MyExtEditCustomDataXmlScenario12 ( ) { Mock < Template > myExtEditCustomDataXmlScenario12TemplateMock = Util . CreateTemplateMock ( " " , " " , " \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ " , " " , " \" \" \" \" \" \" \" \" " ) ; Mock < Project > projectMock = CreateProjectMock ( PROJECTKIND_VB , CUSTOMDATASIGNATURE_VB , new Mock < Template > [ ] { myExtEditCustomDataXmlScenario12TemplateMock } ) ; MyExtensibilitySettings extSettings = new MyExtensibilitySettings ( " " ) ; List < MyExtensionTemplate > extensionTemplates = extSettings . GetExtensionTemplates ( PROJECTKIND_VB , projectMock . Instance ) ; Assert . IsNull ( extensionTemplates , " " ) ; }
MyExtEditCustomDataXml - Scenario 12: Two ID attributes.
MyExtEditCustomDataXml - Scenario 12 : Two ID attributes .