CSharpTest.Net
GetHtmlHelp Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Commands Namespace > CommandInterpreter Class : GetHtmlHelp Method

name

Glossary Item Box

Returns the Help as HTML text

Syntax

Visual Basic (Declaration) 
Public Function GetHtmlHelp( _
   ByVal name As String _
) As String
C# 
public string GetHtmlHelp( 
   string name
)

Parameters

name

Example

Library/Library.Test/TestCmdInterpreter.cs

C#Copy Code
CommandInterpreter ci = new CommandInterpreter(DefaultCommands.Help, new TestCommands());
string helptext = ci.GetHtmlHelp(null);
Assert.IsTrue(0 == helptext.IndexOf("<html>"));
Assert.IsTrue(helptext.Contains("COMMAND"));
Assert.IsTrue(helptext.IndexOf("SOMEDATA",StringComparison.OrdinalIgnoreCase) >= 0);
VB.NETCopy Code
Dim ci As New CommandInterpreter(DefaultCommands.Help, New TestCommands())
Dim helptext As String = ci.GetHtmlHelp(Nothing)
Assert.IsTrue(0 = helptext.IndexOf("<html>"))
Assert.IsTrue(helptext.Contains("COMMAND"))
Assert.IsTrue(helptext.IndexOf("SOMEDATA", StringComparison.OrdinalIgnoreCase) >= 0)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys