Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SandcastleToolBase"/> class.
        /// </summary>
        public SandcastleToolBase()
        {
            EnviromentVariables  = new StringDictionary();
            SandcastleEnviroment = new SandcastleEnviroment();

            EnviromentVariables["DXROOT"] = SandcastleEnviroment.SandcastleRoot;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SandcastleToolBase"/> class.
        /// </summary>
        public SandcastleToolBase()
        {
            EnviromentVariables = new StringDictionary();
            SandcastleEnviroment = new SandcastleEnviroment();

            EnviromentVariables["DXROOT"] = SandcastleEnviroment.SandcastleRoot;
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sandcastle"/> class.
 /// </summary>
 public Sandcastle()
 {
     SandcastleEnviroment = new SandcastleEnviroment();
     WorkingDirectory = Path.GetFullPath(@".\Help");
     TopicStyle = "vs2005";
     LanguageId = "1033";
     NoInfoMessages = true;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Sandcastle"/> class.
 /// </summary>
 public Sandcastle()
 {
     SandcastleEnviroment = new SandcastleEnviroment();
     WorkingDirectory     = Path.GetFullPath(@".\Help");
     TopicStyle           = "vs2005";
     LanguageId           = "1033";
     NoInfoMessages       = true;
 }
        public void Execute()
        {
            MockBuild builder = new MockBuild();
            SandcastleEnviroment sandcastle = new SandcastleEnviroment();

            XslTransform task = new XslTransform();
            task.BuildEngine = builder;
            task.OutputFile = new TaskItem("reflection.xml");
            
            task.XsltFiles = TaskUtility.StringArrayToItemArray(
                Path.Combine(sandcastle.TransformsDirectory, "ApplyVSDocModel.xsl"),
                Path.Combine(sandcastle.TransformsDirectory, "AddFriendlyFilenames.xsl"));

            task.XmlFile = new TaskItem("reflection.org");

            task.Arguments = new string[] {
                "IncludeAllMembersTopic=true", 
                "IncludeInheritedOverloadTopics=true"
            };
            
            bool result = task.Execute();

            Assert.IsTrue(result);
        }