Esempio n. 1
0
 public void TestHelpTopicsAssigned()
 {
     foreach (HelpTopic topic in Enum.GetValues(typeof(HelpTopic)))
     {
         Assert.IsNotNullOrEmpty(UserGuideHelper.GetTopic(topic), string.Format("Topic {0} does not have a html reference attached", topic));
     }
 }
Esempio n. 2
0
        private void TestSingleHelpFile(string filename, string folder)
        {
            string helpPath = folder; //Path.Combine(folder, "html");

            foreach (HelpTopic topic in Enum.GetValues(typeof(HelpTopic)))
            {
                string sourceFile = UserGuideHelper.GetTopic(topic);
                sourceFile = Path.Combine(helpPath, sourceFile + ".html");
                Assert.IsTrue(condition: File.Exists(sourceFile), message: string.Format("Help file '{0}' does not exist in {1}!", sourceFile, filename));
            }
        }