src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// MyExtEditCustomDataXml - Scenario 3: Custom data file empty.
/// Although this is not likely to happen on VSCore code, let's try with all-spaces string.
/// </summary>
Scenario 3: Custom data file empty.
Although this is not likely to happen on VSCore code, let's try with all-spaces string.
Scenario 3 : Custom data file empty . Although this is not likely to happen on VSCore code let ' s try with all - spaces string .
[TestMethod()]
        public void MyExtEditCustomDataXmlScenario3AllSpaces()
        {
            Mock<Template> myExtEditCustomDataXmlScenario3TemplateMock = Util.CreateTemplateMock(
                "MyExtEditCustomDataXmlScenario3",
                "Extension template for MyExtEditCustomDataXml test case, Scenario 3. CustomData file is empty.",
                "C:\\Program Files\\Microsoft Visual Studio 11.0\\Common7\\IDE\\ItemTemplatesCache\\VisualBasic\\1033\\MyExtEditCustomDataXmlScenario3.zip\\MyExtEditCustomDataXmlScenario3.vstemplate",
                "MyExtEditCustomDataXmlScenario3.vb",
                "                             ");
            Mock<Project> projectMock = CreateProjectMock(PROJECTKIND_VB, CUSTOMDATASIGNATURE_VB,
                new Mock<Template>[] { myExtEditCustomDataXmlScenario3TemplateMock });
            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 MyExtEditCustomDataXmlScenario3AllSpaces ( ) { Mock < Template > myExtEditCustomDataXmlScenario3TemplateMock = Util . CreateTemplateMock ( " " , " " , " \\ \\ \\ \\ \\ \\ \\ \\ \\ " , " " , " " ) ; Mock < Project > projectMock = CreateProjectMock ( PROJECTKIND_VB , CUSTOMDATASIGNATURE_VB , new Mock < Template > [ ] { myExtEditCustomDataXmlScenario3TemplateMock } ) ; MyExtensibilitySettings extSettings = new MyExtensibilitySettings ( " " ) ; List < MyExtensionTemplate > extensionTemplates = extSettings . GetExtensionTemplates ( PROJECTKIND_VB , projectMock . Instance ) ; Assert . IsNull ( extensionTemplates , " " ) ; }
MyExtEditCustomDataXml - Scenario 3: Custom data file empty.
MyExtEditCustomDataXml - Scenario 3 : Custom data file empty .