src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// MyExtEditCustomDataXml - Scenario 8: AssemblyName is missing.
/// </summary>
Scenario 8: AssemblyName is missing.
Scenario 8 : AssemblyName is missing .
[TestMethod()]
        public void MyExtEditCustomDataXmlScenario8()
        {
            Mock<Template> myExtEditCustomDataXmlScenario8TemplateMock = Util.CreateTemplateMock(
                "MyExtEditCustomDataXmlScenario8",
                "Extension template for MyExtEditCustomDataXml test case, Scenario 8. AssemblyFullName is missing.",
                "C:\\Documents and Settings\\huyn\\Application Data\\Microsoft\\VisualStudio\\11.0\\ItemTemplatesCache\\Visual Basic\\MyExtEditCustomDataXmlScenario8.zip\\MyExtEditCustomDataXmlScenario8.vstemplate",
                "MyExtEditCustomDataXmlScenario8.vb",
                "<VBMyExtensionTemplate ID=\"My.MyExtEditCustomDataXmlScenario8\" Version=\"1.0.0.0\"/>");
            Mock<Project> projectMock = CreateProjectMock(PROJECTKIND_VB, CUSTOMDATASIGNATURE_VB,
                new Mock<Template>[] { myExtEditCustomDataXmlScenario8TemplateMock });
            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 MyExtEditCustomDataXmlScenario8 ( ) { Mock < Template > myExtEditCustomDataXmlScenario8TemplateMock = Util . CreateTemplateMock ( " " , " " , " \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ " , " " , " \" \" \" \" " ) ; Mock < Project > projectMock = CreateProjectMock ( PROJECTKIND_VB , CUSTOMDATASIGNATURE_VB , new Mock < Template > [ ] { myExtEditCustomDataXmlScenario8TemplateMock } ) ; MyExtensibilitySettings extSettings = new MyExtensibilitySettings ( " " ) ; List < MyExtensionTemplate > extensionTemplates = extSettings . GetExtensionTemplates ( PROJECTKIND_VB , projectMock . Instance ) ; Assert . IsNotNull ( extensionTemplates , " " ) ; Assert . IsTrue ( extensionTemplates . Count == 1 , " " ) ; }
MyExtEditCustomDataXml - Scenario 8: AssemblyName is missing.
MyExtEditCustomDataXml - Scenario 8 : AssemblyName is missing .