src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// MyExtEditCustomDataXml - Scenario 10: Version string is syntactically incorrect.
/// </summary>
Scenario 10: Version string is syntactically incorrect.
Scenario 10 : Version string is syntactically incorrect .
[TestMethod()]
        public void MyExtEditCustomDataXmlScenario10()
        {
            Mock<Template> myExtEditCustomDataXmlScenario10TemplateMock = Util.CreateTemplateMock(
                "MyExtEditCustomDataXmlScenario10",
                "Extension template for MyExtEditCustomDataXml test case, Scenario 10. Version string is syntactically incorrect.",
                "C:\\Documents and Settings\\huyn\\Application Data\\Microsoft\\VisualStudio\\11.0\\ItemTemplatesCache\\Visual Basic\\MyExtEditCustomDataXmlScenario10.zip\\MyExtEditCustomDataXmlScenario10.vstemplate",
                "MyExtEditCustomDataXmlScenario10.vb",
                "<VBMyExtensionTemplate ID=\"My.MyExtEditCustomDataXmlScenario10\" Version=\"1.0.0.0.100\" 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>[] { myExtEditCustomDataXmlScenario10TemplateMock });
            MyExtensibilitySettings extSettings = new MyExtensibilitySettings("NotExistedPath");
            List<MyExtensionTemplate> extensionTemplates = extSettings.GetExtensionTemplates(PROJECTKIND_VB, projectMock.Instance);
            Assert.IsNotNull(extensionTemplates, "Should get a list of extension templates!");
            Assert.IsTrue(extensionTemplates.Count == 1, "The list of extension templates should contain 1 template!");
        }
[ TestMethod ( ) ] public void MyExtEditCustomDataXmlScenario10 ( ) { Mock < Template > myExtEditCustomDataXmlScenario10TemplateMock = Util . CreateTemplateMock ( " " , " " , " \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ " , " " , " \" \" \" \" \" \" " ) ; Mock < Project > projectMock = CreateProjectMock ( PROJECTKIND_VB , CUSTOMDATASIGNATURE_VB , new Mock < Template > [ ] { myExtEditCustomDataXmlScenario10TemplateMock } ) ; MyExtensibilitySettings extSettings = new MyExtensibilitySettings ( " " ) ; List < MyExtensionTemplate > extensionTemplates = extSettings . GetExtensionTemplates ( PROJECTKIND_VB , projectMock . Instance ) ; Assert . IsNotNull ( extensionTemplates , " " ) ; Assert . IsTrue ( extensionTemplates . Count == 1 , " " ) ; }
MyExtEditCustomDataXml - Scenario 10: Version string is syntactically incorrect.
MyExtEditCustomDataXml - Scenario 10 : Version string is syntactically incorrect .