src/Microsoft.VisualStudio.Editor.UnitTests/MyExtensibility/MyExtensibilitySettingsTest.cs
/// <summary>
/// MyExtEditMyVBExtSetXml scenario 10: 
/// The FullName attribute is present, but the AutoAdd and AutoRemove attributes are missing
/// </summary>
MyExtEditMyVBExtSetXml scenario 10:
The FullName attribute is present, but the AutoAdd and AutoRemove attributes are missing
MyExtEditMyVBExtSetXml scenario 10 : The FullName attribute is present but the AutoAdd and AutoRemove attributes are missing
[TestMethod()]
        public void MyExtEditMyVBExtSetXml10()
        {
            string dirPath = System.Environment.CurrentDirectory;
            string filePath = Path.Combine(dirPath, ASM_SETTINGS_FILE_NAME);
            if (CreateFile(filePath, SETTINGSFILE_MYEXTEDITMYVBEXTSETXML10))
            {
                MyExtensibilitySettings extSettings = new MyExtensibilitySettings(dirPath);
                AssemblyOption vb9AddOption = extSettings.GetAssemblyAutoAdd(Util.ASMNAME_VBRUN9);
                Assert.IsTrue(AssemblyOption.Prompt == vb9AddOption, "AssemblyOption.Prompt != vb9AddOption");
                AssemblyOption vb9RemoveOption = extSettings.GetAssemblyAutoRemove(Util.ASMNAME_VBRUN9);
                Assert.IsTrue(AssemblyOption.Prompt == vb9RemoveOption, "AssemblyOption.Prompt != vb9RemoveOption");
                File.Delete(filePath);
            }
            else
            {
                Assert.Fail("Could not create settings file!");
            }
        }
[ TestMethod ( ) ] public void MyExtEditMyVBExtSetXml10 ( ) { string dirPath = System . Environment . CurrentDirectory ; string filePath = Path . Combine ( dirPath , ASM_SETTINGS_FILE_NAME ) ; if ( CreateFile ( filePath , SETTINGSFILE_MYEXTEDITMYVBEXTSETXML10 ) ) { MyExtensibilitySettings extSettings = new MyExtensibilitySettings ( dirPath ) ; AssemblyOption vb9AddOption = extSettings . GetAssemblyAutoAdd ( Util . ASMNAME_VBRUN9 ) ; Assert . IsTrue ( AssemblyOption . Prompt == vb9AddOption , " " ) ; AssemblyOption vb9RemoveOption = extSettings . GetAssemblyAutoRemove ( Util . ASMNAME_VBRUN9 ) ; Assert . IsTrue ( AssemblyOption . Prompt == vb9RemoveOption , " " ) ; File . Delete ( filePath ) ; } else { Assert . Fail ( " " ) ; } }
MyExtEditMyVBExtSetXml scenario 10:
The FullName attribute is present, but the AutoAdd and AutoRemove attributes are missing
MyExtEditMyVBExtSetXml scenario 10 : The FullName attribute is present but the AutoAdd and AutoRemove attributes are missing